Syntax
| [ | Private | Public ] _
Declare Sub name Lib "dll name" _
[Alias "module name"] [([param[, ...]])]
-or-
[ | Private | Public ] _
Declare Function name[type] Lib "dll name" _
[Alias "module name"] [([param[, ...]])] [As type[()]]
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Interface to a DLL defined subroutine or function. The values of the calling arglist are assigned to the params.
Declare defaults to Public if neither Private or Public is specified.
WARNING! Be very careful when declaring DLL subroutines or functions. If you make a mistake and declare the parementers or result incorrectly then Windows might halt. Save any open documents before testing new DLL declarations.
Err.LastDLLError returns the error code for that last DLL call (Windows 32 bit versions only).
| ||||||||||
See Also
| |||||||||||
Example
|
|