LOAD_DLL function

LOADLIBRARY 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 AS STRING)

Syntax 2:

hMod = LOADLIBRARY(DLLName AS STRING)

Return Value:

  • Data type: HMODULE
    hMod The handle to the DLLName module if the function succeeds. If the function fails, the return value is NULL.

Parameters:

  • Data type: STRING
    DLLName file name of the DLL to be loaded.

Example 1:

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

Example 2:

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