I need help with this C-code
It is a callback function from a OEM-DLL
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
It is a callback function from a OEM-DLL
Code:
BOOL PASCAL StatusCallback{LPSTR szItem, long Percent, long Status, void *lpUserData} I interpret this as follows: Function StatusCallback BDECL(szItem as Asciiz, Byval Percent as Long, Byval Status as Long, Byval lpUserData as DWord)as long But that is obviosly wrong. Omitting BDECL and all works like a charm This is from PB/DLL help-file [quote] BDECL Specifies that the declared procedure uses the Basic/Pascal calling convention. When a procedure calls a BDECL procedure, it passes its parameters on the stack left to right. It is the responsibility of the called procedure to clean up the stack before returning to the calling procedure. [/quote] How do I clean the stack?
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
Comment