Declare Action |
Describes a routine that is defined in an external Dynamic Link Library (DLL). After the Declare action the routine can be called with the Call action. ParametersLibrary - (Required) Specifies the name of the Dynamic Link Library (DLL) that contains the routine to be executed. Procedure - (Required) Specifies the name of the routine as it is defined in the DLL. Alias - (Optional) Specifies an alternate name that you can use in the Call action. Returns - (Required) Specifies the data type of the return value from the routine executed. Arguments - (Optional) Describes the parameters required by the external routine. Each argument is defined as follows: ByVal|ByRef name As type. The types supported are Byte, Boolean, Integer, Long, Single, Double, String, String *, WString, and WString *. Example
Notes on Creating Exported DLL functions in Visual C++This section provides some information for creating an exported DLL
that meets the Newlook requirements using Microsoft Visual
C++. Other C++ compilers may or may not support the keywords used in this
section. int GetWindowSize (int nIndex) The following is the exported name result: _GetWindowSize@8 Note the preceding underscore that is added by the _stdcall keyword.
_delcspec(dllexport) long _stdcall DisplayMessage (LPSTR szMessage) A DEF file also exports the function name and removes the name decoration. The following example shows how the EXPORT section of a DEF file is implemented for a function called DisplayMessage: EXPORTS See Also |
|
© 2004-2021 looksoftware. All rights reserved.
|