| | |
Visual Basic and C++ and Debug and DLLs
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Visual Basic and C++ and Debug and DLLs
Here is the problem I am having now. I have a C++ DLL that seems to work just fine. It has been tested with function calls from a executable written in C++. Now, using it with my Visual Basic GUI seems to be ok up to a point. The Visual Basic program compiles and "links" (for lack of a better term to use) with the DLL written in C++. But it seems that I cannot pass the same sort of variables back and forth between the Visual Basic program and the DLL. It seems to crash on the DLL side after a function call is made.
So my question is this. How can I run the two -- the Visual Basic GUI and the C++ DLL -- in debug mode so that I can watch what is happening on the DLL side?
And/Or, if I put a printf statement in the DLL C++ code, where would the output go to?
Here is the problem I am having now. I have a C++ DLL that seems to work just fine. It has been tested with function calls from a executable written in C++. Now, using it with my Visual Basic GUI seems to be ok up to a point. The Visual Basic program compiles and "links" (for lack of a better term to use) with the DLL written in C++. But it seems that I cannot pass the same sort of variables back and forth between the Visual Basic program and the DLL. It seems to crash on the DLL side after a function call is made.
So my question is this. How can I run the two -- the Visual Basic GUI and the C++ DLL -- in debug mode so that I can watch what is happening on the DLL side?
And/Or, if I put a printf statement in the DLL C++ code, where would the output go to?
•
•
•
•
Originally Posted by complete
But it seems that I cannot pass the same sort of variables back and forth between the Visual Basic program and the DLL. It seems to crash on the DLL side after a function call is made.
•
•
•
•
Originally Posted by complete
How can I run the two -- the Visual Basic GUI and the C++ DLL -- in debug mode so that I can watch what is happening on the DLL side?
•
•
•
•
Originally Posted by complete
if I put a printf statement in the DLL C++ code, where would the output go to?
Hope this helps.
Damn it, I still dream of her....:(
How do I declare a string and pass it from a Visual Basic GUI to a C++ DLL?
Now I am debugging successfully. I can debug either on the Visual Basic end or I can debug on the C++ side by using the DLL's project file and declaring the compiled VB code as the launching executable. I have narrowed the problem down to the way that I am declaring and passiing the string variables.
Now I am debugging successfully. I can debug either on the Visual Basic end or I can debug on the C++ side by using the DLL's project file and declaring the compiled VB code as the launching executable. I have narrowed the problem down to the way that I am declaring and passiing the string variables.
![]() |
Similar Threads
- Playing .Wav/MIDI files in a Visual Basic Program (Visual Basic 4 / 5 / 6)
- i need a code for first come first serve simulation using visual basic (Visual Basic 4 / 5 / 6)
- The Move.....Visual Basic 6, Visual Basic .NET ? (VB.NET)
- Encrypting a Visual Basic application (Visual Basic 4 / 5 / 6)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
- Visual Basic.net (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Saving Break Points
- Next Thread: Replace repititious code with a loop?
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





