dll_open (STRING* pathname)
Opens a DLL plugin with the
given name. Plugin functions and engine extensions can be called afterwards.
Parameters:
pathname
- the DLL's file name
including the relative or absolute path (char* or STRING*).
Returns:
0 if the DLL can't be found, otherwise nonzero.
Remarks:
-
This function only opens plugins created with the Plugin
SDK. Functions of normal DLLs can be accessed with the
Windows LoadLibrary function
or through a PRAGMA_API declaration.
-
This function is only required for plugins located
in a certain path
(relative to the work folder)
. Plugins in the default folder (see PLUGINDIR)
are automatically opened.
- The plugin is automatically closed on engine exit.
Edition:
A6.6
Example:
dll_open("dlls\\driver.dll");
See also:
Plugins, PLUGINDIR
► latest
version online