本文介绍了使用清单文件在Visual Studio 2003中而不是在MS-Visual Studio 2008中对话框显示ActiveX控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
In Visual Studio 2003, file AppName.manifest is created in RES directory. It is added in Resource(rc) file of project with below entry IDR_MANIFEST RT_MANIFEST "res\\AppName.manifest" In file - AppName.manifest, new entries for Activex control added. Please find entries of active control for it ....//Other Entries <file name="ActControl.OCX" asmv2:size="260880"> <hash xmlns="urn:schemas-microsoft-com:asm.v2"> <dsig:Transforms> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> </dsig:Transforms> <dsig:DigestMethod Algorithm="www.w3/2000/09/xmldsig#sha1" /> <dsig:DigestValue>0rjhW0scVGcNNyPT10aCVqRN44Y=</dsig:DigestValue> </hash> <typelib tlbid="{78a05e9e-1b53-11cf-91f6-385e30c2863c}" version="1.0" helpdir="C:\WINDOWS\HELP\help012.chm" resourceid="0" flags="CONTROL,HASDISKIMAGE" /> <comClass clsid="{6262d3a0-531b-11cf-91f6-c2863c385e30}" threadingModel="Apartment" tlbid="{5e9e78a0-531b-11cf-91f6-c2863c385e30}" progid="MSActControlLib.MSActControl.1" description="Microsoft ActControl Control 6.0 (SP6)" /> </file> ....//Other Entries This work well when application loaded even when control not registered manually in system with VS-2003. After upgrading project from VS-2003 to VS-2008, same dialog is not displayed in which activex control is added. Is there any difference between manifest file of VS-2003 and VS-2008? If any difference is exist please explain. Also suggest what are changes has to be made in manifest.
推荐答案
Plesae使用vs2008(项目设置)创建新的mainfeast文件. 将代码添加到新创建的mainfeastfile中. Plesae create new mainfeast file using vs2008(project settings). Add your code in new created mainfeastfile .
更多推荐
使用清单文件在Visual Studio 2003中而不是在MS
发布评论