无法在内部包含多个组件的VB6项目中调试ActiveX [英] Can not debug an ActiveX inside a VB6 project with several components inside

查看:108
本文介绍了无法在内部包含多个组件的VB6项目中调试ActiveX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须调试在VB6中完成的大型应用程序。该应用程序由一个主EXE,一些ActiveX项目和其他ActiveX控件项目组成。

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.

我面临的问题是,我无法在某些ActiveX项目中碰到断点。看起来该应用程序在调试器外部使用了OCX,因为该应用程序可以运行,但是断点根本不在那儿。

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.

主EXE具有对由OCX生成的OCX的引用该项目。如果删除该引用,则会得到有关未知类的编译错误。

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.

任何帮助都会很棒。

推荐答案

确保您的ActiveX项目正在使用二进制兼容性(在项目属性的组件选项卡上)。如果不是,则引用ActiveX控件的exe项目指向与ActiveX项目不同的类ID,并且您将无法调试。

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.

这篇关于无法在内部包含多个组件的VB6项目中调试ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆