Why MFC project manifest includes Microsoft.Windows.Common-Controls dependentAssembly and others

How to force, for example, win32 generic project to generate Microsoft.Windows.Common-Controls dependentAssembly in its manitest?

thanks.

[140 byte] By [constm] at [2008-2-3]
# 1
Hi,

MFC does three things:
- #include <commctrl.h>
- link to comctl32.lib
- #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")

You can do the same for your Win32 applications. Just FYI, we have VC++ specific sections on this forum and you may get your question answered faster on these sections.

Hope this helps,
Nikola
VC++

NikolaDudar at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 2

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

<assembly xmlns="urnTongue Tiedchemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="jredl" type="win32" />
<description></description>

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

<trustInfo xmlns="urnTongue Tiedchemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>

</assembly>

Superloginchat at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....

.NET Development

Site Classified