I've got this code and its compiling to a dll but i cant get it to work.
#include "windows.bi"
option explicit
declare function testfunc(in as string) as integer
'testfunc("hello")
function testfunc(in as string) EXPORT
return messagebox(0,in,"test",0)
end function
I'm using this code in Blitz to test it
bank=CreateBank(4)
Print CallDLL("dll.dll","testfunc@4",bank)
changed the code to and that works, but if i send a bank iwth anything other than 0 it craches
#include "windows.bi"
option explicit
declare function testfunc lib "dlltest" alias "testfunc" (in as string) as integer
'testfunc("hello")
function testfunc(in as string) EXPORT
return messagebox(0,in,"test",0)
end function