Hello,
This is the first time I come here.
I need help on my final project...Can anyone tell me how I can use a Visual C++ routine in a Visual Basic application?
This would solve all my problems!!
Any help would be welcome!
Thank You!
Rui Goncalves
Printable View
Hello,
This is the first time I come here.
I need help on my final project...Can anyone tell me how I can use a Visual C++ routine in a Visual Basic application?
This would solve all my problems!!
Any help would be welcome!
Thank You!
Rui Goncalves
Here's an example
Public Declare Function RWTInitialize Lib "c:\rqt\dbacc.dll" (ByVal sQuoteID As String, ByRef nErrCode As Long, ByVal sErrText As String) As Long
lRC = RWTInitialize(txtQuoteNumber, lError, sErrText)
Hi Rui, the only way I know is adding your C++ routine to a DLL, that is, compile it into a DLL. After that, you can use it from VB.
If you compile it into a DLL, I can help you to set the VB routine declaration.
Good luck.