CallCFunction()
Syntax
Result = CallCFunction(#Library, FunctionName$ [,Parameter1 [, Parameter2...]])Description
Calls a function, in the specified library, which handles it's parameters the same way as a normal 'C' language function. The library must have previously been opened with the OpenLibrary() command. The function from the DLL is called by using its name. If the function is described as 'cdecl' then you need to use this command. However, most DLLs used in the Microsoft Windows OS do not use this form, so CallFunction() should be enough for most cases.
Any number of parameters can be specified but it must fit the number of parameters required by the function. For example, if a function needs 2 parameters, then 2 parameters must be passed, even if the 2 values are null.
Note: Currently the maximum number of parameters is 20.
Parameters
#Library - The number of the library you want to call a function from. This must be the same number that you use when you called OpenLibrary().
FunctionName$ - A string containing the name of the function you want to call.
Parameter1, Parameter2, ... - The parameters for the function you are calling. You should use the correct number of parameters here, as described in the developer documentation for the library you are using.
Return value
Result - The result of the library function you have called.
Note: this function is not very flexible and can't handle double/quad parameters or float/double/quad returns. The prototypes are now strongly recommended instead.
Supported OS
All