DllLoad

This function loads a Dll for later use via the DllCall function

Syntax:

DllLoad(dllname)

Parameters:

(s) dllname The name of the Dll to be called.

Returns:

(s) a handle to a Dll for use in DllCalls.

 

When multiple calls are to be made to a Dll, and the calls are interdependent, the Dll should be first loaded via the DllLoad command, and the return value - a dllhandle - should be passed to the DllCall function instead of a filename.

Example:


a0="Hello Dolly"
dllhandle=DllLoad(StrCat(DirWindows(1),"USER32.DLL"))
a1=DllCall(dllhandle, lpstr:"CharUpperA", lpstr:a0)
DllFree(dllhandle)
Message(a0, a1)
See Also:

Binary Operations, DllCall,  DllCallbackCreate, DllCallbackDestroy, DllCall Additional information, DllFree