Can not debug an ActiveX inside a VB6 project with several components inside

﹥>﹥吖頭↗ 提交于 2019-12-08 03:56:17

问题


I have to debug a big application done in VB6. The application is comprised of a main EXE, some ActiveX projects and other ActiveX control projects.

The problem I'm facing is that I cannot hit breakpoints inside some ActiveX projects. Looks like the application is using the OCX outside the debugger because the application runs but the breakpoints are simply not there.

The main EXE has a reference set to the OCX generated by that project. If I remove that reference I get a compilation error about unknown classes.

Any help will be great.


回答1:


Make sure your ActiveX project is using binary compatibility (on the Component tab of the Project Properties). If it isn't, your exe project that references the ActiveX control is pointing to a different class id than your ActiveX project and you won't be able to debug.



来源:https://stackoverflow.com/questions/3512127/can-not-debug-an-activex-inside-a-vb6-project-with-several-components-inside

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!