Debug ActiveX Control Using VS2010
来源:互联网 发布:苏州公司网络注册 编辑:程序博客网 时间:2024/06/01 10:14
Method 1:
Link:Debugging COM and ActiveX
Link:How to: Debug an ActiveX Control
Step1:Code test html.
<HTML><HEAD><TITLE>Test ActiveX</TITLE></HEAD><BODY><OBJECT ID="MyActiveX" WIDTH=800 HEIGHT=600 CLASSID="CLSID:5228A02F-8FBD-424C-B457-EEBD4E748504"><PARAM NAME="_Version" VALUE="65536"><PARAM NAME="_ExtentX" VALUE="4657"><PARAM NAME="_ExtentY" VALUE="4075"><PARAM NAME="_StockProps" VALUE="0"></OBJECT></BODY></HTML>
Step2:Set debug option in VS2010.
Right click the project and select "Properties" tab. Then select Debugging item in the Properties Pages and configure "Command" and "CommandArgs" arguments.
command: C:/Program Files/Internet Explorer/iexplore.exe (Local IE path)
command arguments: C:/test.htm (test.html file path)
Step3: Register ActiveX control using full path.
If not, there will be an error:The sepcified module could not be found.
Step4: Sep break point in VS2010 where the implement code you want to debug. Then press F5 to run the program.
Note:IE8 is multi-thread by default, doesn't support ActiveX debug. So, you must modify the registry as following:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000000
Note:For Win7 x64 and IE11
1.Run regedit and search [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main], then create or update a DWORD(32) value named TabProcGrowth and set value to 1.(In this case,if newing a tab page will start a 32bit ieplore*32)
2.Attach to a x86 ieplore.exe process, then you will debug into breakpoint.
Referrence:
http://www.iefans.net/win7-win8-dakai-32wei-ie10-ie11/
http://stackoverflow.com/questions/17840884/debugging-32-bit-activex-control-with-visual-studio-2008-and-ie-10
http://stackoverflow.com/questions/3021371/can-no-longer-debug-activex-controls-in-visual-studio-2008?rq=1
http://stackoverflow.com/questions/3021371/can-no-longer-debug-activex-controls-in-visual-studio-2008
http://support.microsoft.com/kb/2716529/zh-cn
- Debug ActiveX Control Using VS2010
- Using VS2010 Develop ActiveX Control in Windows Form Control Libarary
- Using VS2010 Develop ActiveX Control in MFC Project
- vs2010没有 ActiveX Control Test Container
- OpenGL vs2010 ActiveX Control Test Container
- vs2010编译ActiveX Control Test Container工具
- vs2010添加TSTCON( ActiveX Control Test Container )工具
- VS2010添加TSTCON( ACTIVEX CONTROL TEST CONTAINER )工具
- 手动获取VS2010 自带容器 ActiveX Control Test Container
- vs2010 中添加 ActiveX Control Test Container工具
- vs2010 中添加 ActiveX Control Test Container工具
- vs2010添加TSTCON( ActiveX Control Test Container )工具
- VS2010添加TSTCON( ACTIVEX CONTROL TEST CONTAINER )工具
- VS2010添加TSTCON( ACTIVEX CONTROL TEST CONTAINER )工具
- 支持ActiveX Control
- ActiveX Control Tutorial
- ActiveX Control Fundamentals
- 自动激活activex control
- Core Java (二十一) 映射表(Map接口)
- 如何设计一个LRU Cache?
- mac下使用ipv6观看电视
- 搭建struts2 + spring + hibernate(一):导入jar包篇
- delphi技术专题---获取网卡物理地址之NetBios网络编程接口LANA介绍
- Debug ActiveX Control Using VS2010
- 用递归实现倒序打印
- 单件模式的基类,C++
- 错误 692:调制解调器中发生硬件故障的解决方法
- 编程英雄出少年--学编程趁年轻,时不待我,朝气蓬勃的学子们成功与成名在等待着你们
- ubuntu 10.04下搭建tftp服务器
- webservice:Axis2
- poj2773 Happy 2006(用gcd函数进行的推导)
- UVA 10303 How Many Trees?