Re: VS2005 and manifest files

Tech-Archive recommends: Speed Up your PC by fixing your registry



Thanks Ivan,
What you describe is pretty much how I was doing it in VC++6, but by default
VS2005 switches are set to create a manifest file and embed it into the
binary.
This is what I'd like to get working.
I'm pretty sure that I can just turn these switches off and go back to my
old method, but if VS can do it automatically I'd like to use the feature.

Cheers

Regards,
Ron Francis
www.RonaldFrancis.com


"Ivan Brugiolo [MSFT]" <ivanbrug@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:eqV5xB2jHHA.4188@xxxxxxxxxxxxxxxxxxxxxxx
-1-
create a file named <binary_name>.manifest

-2-
Embed the dependency in the manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="X.X.X.X"
processorArchitecture="x86"
name="YYYYYYYYYY"
type="win32"
/>
<description>XXXXXXX</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

-3-
Add the following line to the *.RC file for you binary
<resource_id> RT_MANIFEST "<your_path>\<binary_name>.manifest"

-4- compile and link

--
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Ron Francis" <rfrancis@xxxxxxxxxxxx> wrote in message
news:%23KbSrLujHHA.4852@xxxxxxxxxxxxxxxxxxxxxxx
Not sure it I can post this question here of if there is a dedicated
newsgroup for the VS2005 IDE.
I have just upgraded from VC++6 to VS2005 and am trying to convert my
apps that are basically written with C++ and Platform SDK.
In VC6, I just had a manifest file that I included in a resource which
worked fine.
VS2005 has the option to create a manifest and embed it into the file.
I've got this half working but can't find way to include the dependency
below into the generated file ...

<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>


Can someone tell me how to do it?

Regards,
Ron Francis
www.RonaldFrancis.com







.



Relevant Pages

  • Re: How that is done?
    ... Add a manifest file to the VB98 directory that enables XP styles. ... which requires starting them with a Sub Main module and a compiled manifest file in your resource file. ...
    (microsoft.public.vb.general.discussion)
  • How can I run my application under win32 mode in a 64 bit XP?
    ... (But it will work after I manually set the ... following is the manifest file I use to compile my application ...
    (microsoft.public.win32.programmer.kernel)
  • Re: XP LOOK and crash
    ... Here is the manifest file which VS .net 2003 creates, ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: Multi-Byte Application with XP Theme
    ... - Manually edit the manifest file, adding explicitly the dependency to ... add this XML node entry into manifest file: ...
    (microsoft.public.vc.mfc)
  • Re: MSJVM and msjava.dll for windows XP 64bit
    ... in the manifest file. ... with a 32 bit dependency to a common control for ... msjava.dll from dll walker. ... you only miss the vc runtime on the target machine you copied your ...
    (microsoft.public.dotnet.languages.vc)