mfc >> VS2005 and XP manifest

by Bob K » Wed, 15 Mar 2006 07:15:09 GMT

I've imported a project from Visual Studio 2003 into VS2005. So far so good.

When building the UI project, it fails with a duplicate manifest. I had
defined in the resource file an include for a manifest for each platform so
that I get the new XP common controls, and apparently VS2005 creates a
manifest itself. I took out mine and then the compile was successful.

Unfortunately, my app lost the XP controls.

In looking at the manifest that VS2005 now generates magically, it has 2
entries for MFC dll's, but none for the common control DLL.

I created a new test project in VS2005, and it magically had 3 entries in
its manifest, including the common control DLL.

I can't figure out how it is done!

How do I configure my project so that it will insert a 6.0.0.0 common
control dll in the manifest?

Thanks,
Bob






mfc >> VS2005 and XP manifest

by Bob K » Sat, 18 Mar 2006 02:43:45 GMT


I figured it out. Very tricky. The manifest info is contained in a pragma
comment:

#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='x86' publicKeyToken='6595b64144ccf1df'
language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df'
language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df'
language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif










Similar Threads

1. Release VS2005 & XP Common Controls Manifest

2. vista UAC manifest won't build on VS2005 in XP

OK. I've written a separate EXE for the license stuff in my application that 
requires elevated UAC inVista. I have added a manifest to this new code that 
is below this paragraph. Problem I have is that VS2005 in XP complains about 
the manifest with warning:
manifest authoring warning 81010002: Unrecognized Element 
"requestedPrivileges" in namespace "urn:schemas-microsoft-com:asm.v3"

Web research seems to suggest that I should replace the version of MT.exe 
that I am running, but I have tried that and replaced with version 
5.2.3790.2075, but problem still remains and when I test the app on Vista, 
it says "A referral was returned from the server". The following MS page 
goes into more detail than I understand, but it appears to be a manifest 
problem, which I presume would be fixed, if I could get my code to compile 
with the above warning. Any ideas??? Manifest I am using is a basic file and 
looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">

<security>

<requestedPrivileges>

<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>

</requestedPrivileges>

</security></trustInfo>

</assembly>


3. Manifest Files & VS2005 - CSharp/C#

4. VS2005 SP1 and OpenMP manifest

Hello,
I have a problem with side-by-side-information starting my application on 
some computers if I include OpenMP.

I just recognized that OPENMP manifest has a different version than 
vcomp.dll and is a year older. I suppose this was not updated with SP1.
The same is true for MFCLOC folder.

How can I get an updated Microsoft.VC80.OpenMP.manifest? I could change the 
version but do not know about the hash.
Thanks
Markus

5. Manifest problems with MFC executable - VS2005

6. VS2005 and manifest files

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



7. Manifest related error on windows xp sp2 machine

8. XP manifest and SQLManageDataSources

Do you have sp3(a) or MDAC 2.8 installed?

If so you could try to replace sqlunirl.dll in System32 with a previous
version.

We have a support incident running on this problem, where MS is working on a
hotfix.

Marcel


"jdotson" < XXXX@XXXXX.COM > wrote in message
news:1bbef01c3882f$ccc970e0$ XXXX@XXXXX.COM ...
> I'm using an XP manifest with my VC7/MFC-based
> application.  When I call SQLManageDataSources the ODBC
> administrator dialog goes bonkers (immediately goes into
> Add mode, mulitple copies of the dialog, can't cancel or
> close) and the app eventually crashes.  If I remove the
> manifest file, the problem does not occur.  Anyone have
> any ideas?  Thanks in advance.