Global Printer_Text(txt:Byte Ptr, c:Int)"win32"= getprocaddress(toolboxlib, "Printer_Text")
The int corresponds to a long in powerbasic. Since the other issue I've made sure that all of my 32 bit unsigned integers are the same between the languages.
I get an unhandled memory exception error whenever I try to call this routine.
However, if I remove the second parameter from the declaration and from the dll, the error goes away. Is this another issue with the stack getting confused somehow? And if so, how? The variable types correspond correctly...