System::LinkSymbol

System::LinkSymbol connects function definition to the underline function address within a dynamic linking library. Before System::LinkSymbol can be called, a valid handle must be return from System::LoadLibrary. Function definition should be defined by including the relevant C++ header file during the script compilation.

public System::LinkSymbol(
   OSHandle LibraryHandle,
   WString Symbol 
);

Parameters

LibraryHandlethe returned library handle if the static method does not return an error.
Symbolthe function name of the symbol to be linked.

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

  • LinkSymbol will first try the un-mangled symbol before trying to mangle the name.
Example Use
OSHandle libraryHandle;
System::LoadLibrary(L"ODBPP":libraryHandle);
System::LinkSymbol(libraryHandle,L"ODBPP");

Since

TScript Version 1.1

Also See

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