1 Attachment(s)
OK, I need help from ASM men
Hi all,
it is some days I'm struggled trying to find a fix on how to dynamically correctly call external CDECL functions.
Asper posted a bug in support area: http://www.thinbasic.com/community/p...r=all#note2246
He is trying to use Blitz3d SDK library that is defined as CDECL.
I've created a PowerBasic application that use that library and all is fine but in thinBasic calling that library produces a GPF on function exit.
I'm quite sure I'm making something wrong or missing something in releasing stack used for function parameters when functions are CDECL.
As you may know I'm not an expert in ASM, so I need some help.
Can some ASM men out there help me to understand what to do in ASM for calling a CDECL function?
Attached full PB and TB examples with library.
Thanks a lot
Eros