Question and Answer Database FAQ1434C.txt Debugging BCB\BC++ .Dll from Visual Basic Category :Debugging Platform :All Product :C++Builder 1.x Question: How can I debug a DLL written in C++Builder\BC++ that I am calling from Microsoft Visual Basic (VB)? Answer: Here is the set of steps you can follow: 1. If you are currently in the VB IDE, save and exit your project. 2. Open BC++ and load your project for the DLL. Now set breakpoints as needed in your code. 3. Now launch VB and load your project, but do not run your project. 4. Switch back to BC++, select Debug|Attach, and attach VB32.EXE. 5. Now switch back to VB and run your project. 6. In C++Builder\BC++, a CPU window will pop up. Ignore it by going to Debug menu and click Run. 7. Now you can stop and start your VB project as you like. You can also add remove breakpoint in VB and BC++. 8. If you want to rebuild your DLL, you need to stop your VB application and quit VB. 7/2/98 10:32:32 AM
Last Modified: 01-SEP-99