System::LoadLibrary

System::LoadLibrary opens a dynamic linking library file resource for reading. This static method will check to see is the currently executing script has the appropriate permissions to the desired file before allowing the underline function to be called. The script must have both permission to load libraries by been given the parameter System::ALLOW_LOAD_DLL and also been give permission to read access the file via System::WORK_PATH_READ or System::WORK_PATH_WRITE.

public System::LoadLibrary(
   WString LibraryName 
:  OSHandle LibraryHandle
);

Parameters

LibraryNamethe name of the file to be opened. The .dll or .so will be appended depending on the underline OS.
LibraryHandlethe returned library handle if the static method does not return an error.

Return Values

The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.

Remarks

Example Use
OSHandle libraryHandle;
System::LoadLibrary(L"ODBPP":libraryHandle);
System::LinkSymbol(libraryHandle,L"ODBPP");

Since

TScript Version 1.1

Also See

System::LinkSymbol
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript