Debug OCX used within another application
Posted on 2006-05-10
I'm using VB6 and have the code to an OCX. I've tried setting the Version Compatibility with the Component tab of the Project Properties to all three types (No Compatibility, Project Compatibility, and Binary Compatibility). I've also set within the Debugging tab to Start Program and pointed it to the program that uses the OCX. When I try to debug the process the program that uses the OCX informs me that the component is not registered. If I re-register it and run the program outside of VB everything works fine. If I then try again to debug from inside of VB I get the registration error. It seems that VB is somehow overwriting the registry settings and pointing to VB6DEBUG.DLL instead of my OCX.
What do I need to do to properly debug the OCX?