Another DLL issue #2

BlitzMax Forums/BlitzMax Programming/Another DLL issue #2

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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...