Table of Contents

TatCustomScripter.AllowDLLCalls Property

Indicates whether scripts are allowed to call DLL functions directly using an external declaration.

Remarks

When AllowDllCalls is true, you can call dll functions directly from script, using a syntax similar to Delphi.

function MessageBox(hwnd: pointer; text, caption: AnsiString; msgtype: integer): integer; stdcall; external 'User32.dll' name 'MessageBoxA';

MessageBox(nil, 'Are you sure?', 'Confirmation', MB_ICONQUESTION + MB_YESNO); For security purposes, AllowDllCalls is false by default.

Syntax

Unit: atScript

property TatCustomScripter.AllowDLLCalls: Boolean

See also