April 12th, 2011, 01:26 PM
How to debug VB6 OCX under VB6
I know this has been asked before, but....
Using the VB6 IDE, how can I debug (ie, set breakpoints, etc) a VB6 OCX that's invoked by a VB6 exe?
I have the source for both the exe and the OCX. I would like to be able to debug by putting the EXE and OCX projects in the same "group".
But I've tried every "how to" tip I've found, and I can't get it to work. I set a breakpoint in the OCX project, and it's never hit. I suspect it's using the registered OCX, not the code in my OCX project. One of the posts I read mentioned to not point to the wrong OCX, but didn't explain how to do that, and I'm a little unclear about how to "direct" VB6 to "use the OCX project" during debug.
What's the complete list of steps necessary to get this to work?
Thanks in advance!
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!