Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I guess manifest file will embed in PE file by linker. I have known the manifest file can control the UAC,or prevent Application Compatible Assistant .
Today I download an old project form codeproject.com , and find a manifest file which content is:
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="UICtrlDataSpy"
    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>
</assembly>

When I exclude the manifest from project and rebuild, Running it but the control in the window lost beautiful appearance under OS window7。
I'm very curious about that, and want to know the what take effect?
Posted

1 solution

The Visual-Styles for Windows XP and above depend on Common-Control Library Version 6.
The comctl32.lib Library has to be linked and you need the manifest telling the version.
Additionally you have to init the library to use some of the newer Controls.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900