Apply wininet dbg version to an app build with vs2008.
来源:互联网 发布:mac不知管理员名称密码 编辑:程序博客网 时间:2024/06/13 09:04
keyword: wininet.dll urlmon.dll debug version iexplore.exe.local Microsoft.VC90.ATL.manifest Microsoft.VC90.CRT.manifest msvcr90.dll atl90.dll
在 side-by-side component 之前, 运用 Dynamic-Link Library Redirection, 你可以很容易的使用 wininet.dll/urlmon.dll 的 debug 版来调试程序. 只需要在程序(app.exe) 所在的目录创建一个 app.exe.local, 然后把 debug 版的 wininet.dll 放到这个目录, 设置环境变量 SET WININETLOG=1, 运行程序就能生成一个 wininet log 文件了.
但如果你的程序是 vs2008 编译的, 就会发现这个方法不好使了. Ref[2] 中提到这么一句.
"If the application has a manifest, then any .local files are ignored."
要想让你的 vs2008 编译的新程序也能使用 debug 版的 wininet.dll. 你必须使用 manifest 文件. 将下面的 code 保存为 wininet.dbg.manifest:
注意其中的版本号, 要和你的 debug wininet.dll 的版本一致. 注意 assemblyIdentity 中的 name 属性. file 节点在这里是必须的. 指定是哪个 dll.
在你的程序的代码这加入下面这段:
注意, name 属性 wininet.dbg 要和上面的 xml 文件中的 assemblyIdentity name 属性保持一致. 并且和 wininet.dbg.manifest 的文件名保持一致. 三个地方出现的 wininet.dbg 可以替换成任意字符串, 除了 wininet
在测试这个 manifest 文件的时候, process monitor 帮了很大的忙.
Reference:
1. How to use the debug version of the Wininet.dll file for Internet Explorer
http://support.microsoft.com/kb/884931
2. Dynamic-Link Library Redirection
http://msdn.microsoft.com/en-us/library/ms682600(VS.85).aspx
3. Isolated Applications and Side-by-side Assemblies
http://msdn.microsoft.com/en-us/library/aa375193(VS.85).aspx
- Apply wininet dbg version to an app build with vs2008.
- How to build a mobile app with an App Engine backend
- How to Build an Android Project with Eclipse
- You are attempting to build with an unsupported JDK.
- OSX “open” command to create new files with an app
- This app has been built with an incorrect configuration. Please configure your build for VectorDra
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDra
- This app has been built with an incorrect configuration. Please configure your build for VectorDraw
- This app has been built with an incorrect configuration. Please configure your build for VectorDraw
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java
- 软件测试过程模型的种类之--------------前置测试模型(转)
- abap call java
- asp.net判断输入文字是否是数字
- Oracle数据库表和视图对象简介
- 软件测试模型的使用(转)
- Apply wininet dbg version to an app build with vs2008.
- Oracle常用命令整理
- 关于日期知识的整理
- IDC存储软件定义的七个主要类别
- 企业笔试的试题-----三角形的测试用例设计(转)
- static的全部用法
- Java6学习笔记38——操作JAR文件
- VC实现控制路由器重新启动
- 这周买了本Ext 凌厉开发 清华大学出版的(附带光盘的)