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:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Need help: __cdecl and __stdcall
I believe all the functions in the Win32 API use __cdecl, but VB can still use them.

Typical VB API access declaration:
Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long

'Template':
Private Declare Function <functionname> Lib "<filename>.dll" Alias "<funcnamefromdll>" (<arglist>) As <returntype>

EDIT: Tell you what, you post the function header from your DLL, and I'll see if I can come up with a VB declaration statement to allow you to use it.

This post was edited on 05-28-2004 at 12:02 PM by RaceProUK.
[Image: spartaafk.png]
05-28-2004 12:01 PM
Profile PM Web 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