返回首页

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.

回答

评论会员:N 时间:2