LOAD_DLL function

Purpose: LOAD_DLL and LOADLIBRARY are aliases for the LoadLibrary API function which is used to load DLLs.


 Syntax 1:

 hMod = LOAD_DLL(DLLName$)

 Syntax 2:

 hMod = LOADLIBRARY(DLLName$)

 Parameters:

  • DLLName$ File name of the DLL which is to be loaded.

 Return Value:

  • hMod, the return value, will contain a HMODULE handle to the DLLName$ module if the function succeeds. If the function fails, the return value is NULL.

Example 1:


 DIM hMod AS HMODULE
 hMod = LOAD_DLL("MyLib.DLL")

Example 2:


 DIM hMod AS HMODULE
 hMod = LOADLIBRARY("MyLib.DLL")