DLL_ON

DLL_ON D

LOADS THE DLL D TO THE MEMORY

  • Type: Command
  • Parameter: 1
  • Group: DLL

ACTION

The command DLL_ON D loads to the memory the DLL (Dynamic Link Library) of mame D. D is the absolute or relative name of the DLL file.

The absolute name is the entire name, related to the root of the file system (ex: "c:\temp\file.dll").

The relative name is the name of the file related to the current directory (ex: "file.dll" or "/file.dll" or "\file.dll").

For the DLL files, the relative name designates either the current directory, or the directory specific fir DLL: Windows/System32

SYNTAX: DLL_ON D

  • D = string, absolute or relative name of the file.

USE

  • The command DLL_ON is used to load a DLL to the memory, in order to call its functions.

ERROR

  • If file D does not exist.
  • If D is not a correct name of file.

EXAMPLE

dim v,r

rem DLL loaded to the memory

dll_on "my_dll.dll"

rem call a function of the DLL with 2 parameters

v=23

r=dll_call2("func", 19, v)

rem print the result

print v

rem release the memory

dll_off

SEE ALSO

DLL_OFF

DLL_CALL0()

DLL_CALL1()

DLL_CALL2()

DLL_CALL3()

DLL_CALL4()

DLL_CALL5()

DLL_CALL6()