A Not-So-Neat Balancing Act
-
I am using the cards.dll in my application as suggested at this website: http://www.publicjoe.f9.co.uk/csharp/card06.html The card shows up just fine on the form but i get this weird message immediately after drawing: ----------- A call to PInvoke function 'CardMgr!cards.cardsdll::cdtDraw' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. ------------ I have no clue what information to include in this to even begin to addrss the problem. Any ideas how to address this? Thanks!
-
I am using the cards.dll in my application as suggested at this website: http://www.publicjoe.f9.co.uk/csharp/card06.html The card shows up just fine on the form but i get this weird message immediately after drawing: ----------- A call to PInvoke function 'CardMgr!cards.cardsdll::cdtDraw' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. ------------ I have no clue what information to include in this to even begin to addrss the problem. Any ideas how to address this? Thanks!
-
Thank you so VERY VERY VERY much, Ravi. That resolved the problem ... the DLL returned an integer ... the interface expected a bool. I will so inform the author of the website ... thanks again.