使用清单文件在Visual Studio 2003中而不是在MS-Visual Studio 2008中对话框显示ActiveX控件? [英] Dialog display ActiveX control in Visual Studio 2003 but not in MS-Visual Studio 2008 using manifest file?

查看:189
本文介绍了使用清单文件在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="http://www.w3.org/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-Visual Studio 2008中对话框显示ActiveX控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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