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)
Mit diesem Befehl lassen sich externe Befehle auf Bibliotheken oder INLINE direkt für die Nutzung in GLBasic veröffenltichen.
Typenkonvertierung ist:
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)