Ahh I see. Sorry, I didn't even take in the external declaration te first time round.

Well, I don't have much experience using the external declaration, but presumably the problem is that you haven't defined your function as using the stdcall calling convention.


Spelling mistakes, grammatical errors, and stupid comments are intentional.