http://www.file-upload.net/download-3068095/glbddlltest.rar.html (http://www.file-upload.net/download-3068095/glbddlltest.rar.html)
this rar contains a dll , a blitzbasic exe as demo and the source
i hope somebody can help me and show me the glb code for the dll.
i have written some code but noone will work :giveup:
thx marmor
ok i got the first dll call allright :happy: but the second one is mystic for me
FUNCTION foo:
ENDFUNCTION
INLINE
DECLARE_C(PUTHANDLER, "test.dll", (void* inb, int insz, void* outb, int outsz), int)
ENDINLINE
FUNCTION PutHandlr%:
LOCAL in%[], out%[]
LOCAL insz% = 320*240
LOCAL outsz% = insz%
DIM in[insz]
DIM out[outsz]
LOCAL retv%
INLINE
if(!PUTHANDLER) DEBUG(CGStr("DLL wurde nicht geladen!\n"));
retv% = PUTHANDLER((void*)&in(0), insz, (void*)&out(0), outsz);
ENDINLINE
ENDFUNCTION
So?