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
43 / Male / Flag
Joined: Jan 2003
O.P. RE: Need help: __cdecl and __stdcall
quote:
Originally posted by Mnjul
Well Choli, it seems that you haven't searched whole MSDN and Microsoft KB...
lol, :p can you give me the link where you found that, please?
quote:
Originally posted by Mnjul
Would this work?
yes and no, dodgy things are happening here... err... I mean:

When in VB (btw, VB 6, not .net) I put the CDecl keywork, VB recognices it (yay! :banana:) but I've found this things: I call the function in the DLL and when I put the CDelc, VB says wrong calling convention and if i remove CDecl it works. That was a quick test, so I said, I'll repeat later. Now, I've exported 2 functions, one with __cdecl and the other with __stdcall. If un VB I use the CDecl I can't call the function with __stdcall but I can call it if don't use CDecl ((Y)), but I can't call the __cdecl using nor not using CDecl :'(

Also, if in VC++ I export a function without saying __cdecl nor __stdcall, I can't call it from VB either (the default setting at the VC++ proyect is __cdecl).

So I'm starting to be paranoid :P Once the DLL is built, how can I know the calling convention of an exported function (with the dependency walker I can see the exported functions, but not their calling convention).

I'm using VC++ .NET 2002, if that helps :-/

I'm sure I'm doing something wrong but it seems I missed it :rolleyes:

Well, thanks a lot for your help... After seeing how VB compiles the code with the CDecl keyword I'm sure that doing that is possible... Definetely I have to do more tests :P
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
05-28-2004 11:58 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