Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging VC OCXs from VB

Status
Not open for further replies.

SWilliams15

Programmer
Dec 28, 2000
14
US
I need to step into an OCX component app created in VC6, when it's called from VB6. I need to break at points in the debug version of the OCX code and then step through the code and display var values just like I could if I was running an executable in VC. I know this is possible, just not sure how to set it up. Any help would be much appreciated.

A reference to an MSDN article explaining this would work too (though i can't find one that seems to work).

Thanks,
Sean
 
To debug a DLL using the project for the DLL

1.From the Project menu, click Settings.The Project Settings dialog box appears.
2. Choose the Debug tab.
3. In the Category drop-down list box, select General.
4. In the Executable For Debug Session text box, type the name of the executable file that calls the DLL.
5. In the Category list box, select Additional DLLs.
6. In the Local Module Name column, type the name of the DLLs you want to debug.
7. Click OK to store the information in your project.
8. Set breakpoints as required in your DLL source files or on function symbols in the DLL.
9. From the Build menu, click Start Debug and Go to start the debugger.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top