Calling conventions <mainly windows>
William <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I was doing some work with wx.NET and Delphi 5. I essentially converted a few basic classes from the wx-c exports like wxObject and wxString and found that my program would crash all the time. I did a little digging and found that WXEXPORT is defined as __declspec(dllexport) and nothing else. What's my point?, well as far as I understand (and I could be wrong) if you don't include the __stdcall directive in an exported method then that method will be exported under the cdecl calling convention. I mention this since all the DLLImport directive in your C# classes seem to not be specifying that the methods are in fact cdecl methods. Once I changed all my imports to cdecl in my Delphi program things started to work fine. Am I full of shit or am I onto something? __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com