954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

DLL problem

I have queries regarding dll create in c/c++ that been use in vb6.
What suitable data type i have to use in vb6 for c/c++ dll function that using char, unsigned char, short, unsigned short, unsigned int and unsigned long for it arguments data type. I encounter error Bad DLL Calling Convention most of the time.

exp_ps
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

howdy!
try this and get back to me
c++ / vb equivalent
char /string
short /integer
unsigned short/ integer
unsigned inte /integer
unsigned long /long

I have queries regarding dll create in c/c++ that been use in vb6.
What suitable data type i have to use in vb6 for c/c++ dll function that using char, unsigned char, short, unsigned short, unsigned int and unsigned long for it arguments data type. I encounter error Bad DLL Calling Convention most of the time.

jamello
Posting Whiz in Training
219 posts since Oct 2006
Reputation Points: 215
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You