NEED help Calling a VC++ DLL from VB4 
Author Message
 NEED help Calling a VC++ DLL from VB4

Problem: I want to call my own Visual C++ 4.0 DLL from Visual Basic 4.0.
The problem is that when I call the DLL in Visual Basic I get a "Bad DLL
calling convention" error. I need to be able to send numbers from VB4 into
a DLL function that can, for example add them and return the sum to my VB4
project. I'm more or less sure the problem is in variable declaration in
one of the two. My Dll works if I call it from another Visual C++ project.
1)Can someone send me Visual C++ source code that contains a function that
adds two numbers and returns the sum. 2) Also need the VB4 code that calls
the DLL function, sends two numbers into it and receives the sum.
        I've struggled with this for a while, so any help is appreciated.



Tue, 09 Mar 1999 03:00:00 GMT  
 NEED help Calling a VC++ DLL from VB4

Quote:

>Problem: I want to call my own Visual C++ 4.0 DLL from Visual Basic 4.0.
>The problem is that when I call the DLL in Visual Basic I get a "Bad DLL
>calling convention" error. I need to be able to send numbers from VB4 into
>a DLL function that can, for example add them and return the sum to my VB4
>project. I'm more or less sure the problem is in variable declaration in
>one of the two. My Dll works if I call it from another Visual C++ project.
>1)Can someone send me Visual C++ source code that contains a function that
>adds two numbers and returns the sum. 2) Also need the VB4 code that calls
>the DLL function, sends two numbers into it and receives the sum.
>    I've struggled with this for a while, so any help is appreciated.

Read the VB4DLL.TXT file in the directory you installed VB4.0. This
should help resolve your conflicts.

Jim Huguley

* Those who sit and think *
* Mostly sit              *



Tue, 09 Mar 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need help passing a DC to a vc++ dll

2. Need help passing a DC handle from vb to a vc++ dll

3. Need help passing a DC to a vc++ dll

4. Prob calling VC++ 4.0 DLL from VB4 (32bit)

5. *** How to call a VC++4 DLL from VB4 (w/source eg:)

6. Need Help w/ comdlg32.dll Call in VB4

7. Calling VC++ programs and VC created dlls from VB

8. How to create DLL for subtractio in vc++ and how to call in it in

9. Please help - Calling a VC++ Dll from VB

10. Help: Calling dll's form Vbasic writen in VC++ 5.0

11. Help: VB40 calling VC++ DLL with strings...

12. HELP! Calling a VC DLL from VB

 

 
Powered by phpBB® Forum Software