What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Need help: __cdecl and __stdcall

Need help: __cdecl and __stdcall
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
42 / Male / Flag
Joined: Jan 2003
O.P. Huh?  Need help: __cdecl and __stdcall
Ok... I have a DLL written in VC++ that exports a function that uses the __cdecl calling convention and I want to call the function from a VB program. However VB uses the __stdcall calling convention so I can't use the DLL (actually I haven't tested that, but I'm sure I won't be albe to use the DLL).

So the question is: Is there anything I can do to force VB use the __cdecl calling convention? What can I do? Ideas?

I'd prefer not to modify the DLL code, because the DLL will be used by another program too, and it needs to stay as __cdecl. I've thought about making another DLL (in VC++) that exports a __stdcall function that calls the __cdecl one in the original DLL, however I'm not very good in VC++ and don't know how to call an exported function of a DLL :$.

Thanks for your help! :)
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
05-26-2004 08:59 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help: __cdecl and __stdcall - by Choli on 05-26-2004 at 08:59 PM
RE: Need help: __cdecl and __stdcall - by RaceProUK on 05-28-2004 at 12:01 PM
RE: Need help: __cdecl and __stdcall - by Choli on 05-28-2004 at 02:15 PM
RE: Need help: __cdecl and __stdcall - by RaceProUK on 05-28-2004 at 03:10 PM
RE: Need help: __cdecl and __stdcall - by Mnjul on 05-28-2004 at 05:09 PM
RE: Need help: __cdecl and __stdcall - by Choli on 05-28-2004 at 11:58 PM
RE: Need help: __cdecl and __stdcall - by Jnrz7 on 05-29-2004 at 01:02 AM
RE: Need help: __cdecl and __stdcall - by RaceProUK on 05-29-2004 at 10:01 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On