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:

  • hMod If the function succeeds, hMod , an HMODULE data type variable, will contain a handle to the DLLName$ module as the return value. If the function fails, the return value is NULL.
  • DLLName$ File name of the DLL which is to be loaded.

Example 1:


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

Example 2:


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