All Bundles

DllProxy

Class allow programmers to load native shared libraries that can be called by Objeck classes. Programmers can call native C functions within these libraries.

Operations

New

Path to the shared library.

The file name must start with 'libobjk_'. The file ending should not include the extension name (i.e. .dll, .so, etc.) for portability.

New(name:String)
Parameters
NameTypeDescription
nameStringshared library path

CallFunction

Calls a native C function.

method : public : CallFunction(name:String, args:Base[]) ~ Nil
Parameters
NameTypeDescription
nameStringof the native C function
argsBase[]argument to the native function

IsLoaded

Returns rather the shared library has been successfully loaded

method : public : IsLoaded() ~ Bool
Return
TypeDescription
Boolreturns true if the the library has been successfully loaded, false otherwise

Unload

Unloads the shared library

method : public : Unload() ~ Nil