Main sections
IMPORT
IMPORT "C" __stdcall MessageBoxA(int hwnd, const char* text, char* caption, int flags)
IMPORT "C" int foo()
IMPORT void bar(int a, double& d)
<B>This command is for advanced users.</B>
With this command you can directly import external functions from a library, an external file or an INLINE function for use as a native GLBasic command.
Type conversion is:
int, long, short, char, void* -> DGNat
double, float -> DGInt
int& -> DGNat BYREF
double& -> DGInt BYREF
char*, const char* -> DGStr
IMPORT "C" int __stdcall MessageBoxA(int hwnd, const char* text, char* caption, int flags)
MessageBoxA(0, "Test", "test", 0)