Function DllExecuteCall() Foundation
Calls a function from a dynamically loaded DLL using a call-template.
DllExecuteCall( <cCallTemplate> [, <xParam,...>] ) --> xReturn
DllExecuteCall() returns the return value of the executed DLL function. If the DLL complies with the Xbase++ calling convention, the value may be of any Xbase++ data type. Otherwise, the return value is of numeric data type.
In case of a runtime error, the return value can be substituted by the error handler.
The function DllExecuteCall() is used in conjunction with DllPrepareCall() which prepares a call-template for the execution of a DLL function. The call-template is passed to DllExecuteCall() together with the parameters for the DLL function. The call-template can be reused any number of times. However, call-templates can only be used by the process in which they were created.
Notes for Xbase++ DLLs
If a DLL file is created by Xbase++, the fastest possible way to call a function contained in a dynamically loaded Xbase++ DLL is provided by the macro-operator. The following expression is used for that purpose:
The macro-operator searches for the function name in the symbol table, the execution-operator () calls this function and passes the optional parameters<xParam> to it. If a DLL does not comply with the Xbase++ calling convention, this is not possible.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.