Home > Language Reference > System Functions > External$

External$

The External$ function executes the specified function in a DLL and retrieves the string return value of the function.

Usage

Used to call DLL functions and therefore an ideal way of extending the WinTask language using custom DLLs or for calling Win32 API functions.

Syntax

var$ = External$(<DLL_name>, <method_name> [, <param1> [, <param2>, ...]])

Parameters

<DLL_name>. string, name of the DLL to perform the function on.

<method_name>. string, name of the DLL function to call.

<param1>, <param2> . optional parameters, type integer or unsigned or string.

Return value

var$, string.

Remarks

In order to use External$ function, the calling convention for the exported function must be _stdcall and the function must return char*. External  function is more powerful as it does not have those limitations.

See also

Allocate
External

Example

See External example.