Method DllCallback():new() Foundation
Initializes a callback object.
:new( [<cFunctionName>], [<nCallmode>] [, <nParameterType1>, ...] ) --> oDllCallback
Constant | Description |
---|---|
DLL_STDCALL *) | Standard for Windows 32bit API |
DLL_CDECL | C calling convention |
|
Constant | Description |
---|---|
DLL_TYPE_INT16 | 16 bit unsigned integer |
DLL_TYPE_UINT16 | 16 bit signed integer |
DLL_TYPE_INT32 | 32 bit signed integer |
DLL_TYPE_UINT32 *) | 32 bit unsigned integer |
DLL_TYPE_INT64 | 64 bit signed integer |
DLL_TYPE_UINT64 | 64 bit unsigned integer |
DLL_TYPE_FLOAT32 | 32 bit floating point |
DLL_TYPE_FLOAT64 | 64 bit floating point |
|
Constant | Description |
---|---|
DLL_TYPE_INT16 | 16 bit unsigned integer |
DLL_TYPE_UINT16 | 16 bit signed integer |
DLL_TYPE_INT32 | 32 bit signed integer |
DLL_TYPE_UINT32 | 32 bit unsigned integer |
DLL_TYPE_INT64 | 64 bit signed integer |
DLL_TYPE_UINT64 | 64 bit unsigned integer |
DLL_TYPE_FLOAT32 | 32 bit floating point |
DLL_TYPE_FLOAT64 | 64 bit floating point (double) |
DLL_TYPE_STRING | Character string |
DLL_TYPE_XPPVALUE | Xbase++ native value |
The class method :new() returns a DllCallback object.
Objects of the class DllCallback are used with DLL functions which execute a callback as a part of their operation. The method :new() establishes a reference to the Xbase++ code which is to be executed in the callback. The code may either be located in a separate function, or it must be implemented in the :execute() method of a user-defined callback class derived from DllCallback. :new() also sets information such as the calling convention which is required for executing the callback function, and for processing its parameters.
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.