Calling Conventions in vb

I need to call to function inside a dll written in c language, using the __cdecl
calling convention . As you know, vb knows only to call functions using stdcall calling conventions.
does anyone knows a workaround this problem?
LVL 2
msimanAsked:
Who is Participating?
 
mcriderConnect With a Mentor Commented:
This Microsoft page will tell you how to call using __cdecl...

HOWTO: Call C Functions That Use the _cdecl Calling Convention
http://support.microsoft.com/support/kb/articles/Q153/5/86.asp 

Cheers!
0
 
deightonCommented:
Make another dll in c to convert the calling convention, then use it as a wrapper.
0
 
msimanAuthor Commented:
thanks.
0
All Courses

From novice to tech pro — start learning today.