XP Styles with Visual Studio 2005



I have a project that build an MFC application that includes a manifest file
via its .RC file.

The manifest file is included in the .RC file using the following lines:

// now include our WinXP Styles manifest
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST
"res/MyApplication.exe.manifest"

This works just fine in VS-2003. However, when I attempt to link the
application with VS-2005 I get a message stating that there are duplicate
manifests.

If I remove the include of my manifest file the link goes fine. It appears
that a manifest is built automatically. However, when it's finished the
resulting application doesn't use the XP styles.

Is there any way to get VS-2005 to build a manifest that includes XP styles
or is there a way to get VS-2005 to accept the manifest via the .RC file?

Thanks,
Allan.



.



Relevant Pages

  • Re: Manifest files
    ... Yet I run into run-time error R6034 if I have no manifest file - the main executable uses the C and C++ RTL DLL & MFC DLL. ... Seems that I can get rid of Manifest files for dependent DLLs but not EXEs. ... [This seems to be the key to defining private assemblies - heaven knows why.] ...
    (microsoft.public.vc.language)
  • Re: Manifest file as a custom resource.
    ... I've got the standard manifest file part figured out, and even the part when you ... As a resource, you add it as a custom resource and in resource editor it sould display as 24> 1 ... out of the Classic Theme to test things out. ...
    (microsoft.public.vb.general.discussion)
  • Re: Manifest Use for XP Style Controls
    ... Both occur only if the manifest file is in place. ... Public Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex ... As tagInitCommonControlsEx) As Boolean ...
    (microsoft.public.vb.general.discussion)
  • Re: class not found problem
    ... Exception in thread "main" java.lang.NoClassDefFoundError: ... So tried suggested article by adjusting the Manifest text before recreating ... the custom jar. ... Your JAR has to have a Class-Path entry in its manifest file. ...
    (comp.lang.java.help)
  • Re: PIMAGE_IMPORT_DESCRIPTOR
    ... GDIPlus.dll, it is special, and windows loader will always search WinSxs ... For your application, if it does not have a valid manifest for the Exe, ... Once there is valid manifest file for the Exe for ATL80.dll, ... LoadLibraryEx/LoadLibrary APIs will search WinSxs with the manifest ...
    (microsoft.public.win32.programmer.kernel)