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
  • TScript
main(){
   OSHandle libraryHandle;
   System::LoadLibrary(u"ODBPP":libraryHandle);
   System::LinkSymbol(libraryHandle,u"ODBPP");
}

Since

TScript Version 1.1

Also See

System::LoadLibrary
Listen All
Comments (0)
Characters left: 2500
 
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript