Also ist ganz einfach über INLINE einsatz!
Du machst ein Projekt, fügst eine zusätzliche *.gbas dazu und in dieser fügst du folgendes ein:
INLINE
} // Close GLBasic-namespace
DECLARE_ALIAS(_MessageBoxA, "user32.dll", "MessageBoxA", (HWND, const char*, const char*, unsigned int), int);
namespace __GLBASIC__{ // restore GLBasic-namespace
ENDINLINE
FUNCTION GLB_MessageBox: caption$, text$, _type%
INLINE
return _MessageBoxA( (HWND)GLBASIC_HWND(), text_Str.c_str(), caption_Str.c_str(), _type);
ENDINLINE
ENDFUNCTION
einfach jetzt wie ne normale Funktion aufrufen, fertig!