如何在项目中查找所有ActiveX控件 [英] How to find all activeX controls in aproject

查看:90
本文介绍了如何在项目中查找所有ActiveX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要回到一个我几年没有做过的项目.尝试运行项目时出现错误消息.该错误发生在occcout.cpp中.查找我可以找到的内容,该错误似乎暗示有activeX控件出现问题.它的 这么久了,我不记得项目中所有的活动控件.有什么办法可以找到所有的activeX控件吗?

I am coming back to a project i have not worked on for a few years. I am getting error message when trying to run the project. The error occurs in occcout.cpp. Looking up what i could find, the error seems to imply problems with an activeX controls. Its been so long i cant remember all the active controls in the project. Is there someway to find all the activeX controls?

推荐答案

您好,BigE_From_84,

Hi BigE_From_84,

能否请您告诉我们您正在从事的项目类型是什么?

Could you please tell us what's the project type that you are working?

我们可以通过以下步骤在WinForm应用程序中找到ActiveX控件.如果您的项目类型不是WinForm,请随时告诉我.

We could find ActiveX controls in WinForm application with following steps. If your project type is not WinForm, please feel free to let me know.

  1. 展开参考"在项目中.
  2. 检查是否引用了与ActiveX控件相关的程序集.如果不是,则表示您的项目中没有使用ActiveX控件.
  3. 双击与ActiveX控件相关的程序集以打开对象浏览器"窗口,其中将列出该程序集中包含的所有控件. /li>
  4. 如果要确认使用了哪个特定控件,请打开Form.Designer.cs文件,该文件由Form UI生成.例如,我在窗体中使用了CTreeView控件和Microsoft Forms 2.0 Checkbox,我将在Form.Designer.cs中找到以下代码. 文件.
  1. Expand "References" in project.
  2. Check whether there has any ActiveX control related assemblies are referenced. If not, it means there doesn't have ActiveX controls used in your project.
  3. Double click the ActiveX control related assembly to open the Object Browser window, where will list all controls that included in this assembly.
  4. If you want to confirm which specific control used, please open the Form.Designer.cs file, where the code is generated by the Form UI. For example, I used a CTreeView control and a Microsoft Forms 2.0 Checkbox in my Form, I will find below code in Form.Designer.cs file.

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于如何在项目中查找所有ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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