.manifest文件在VS项目中的作用是什么? [英] What's the effect of .manifest file in VS project

查看:710
本文介绍了.manifest文件在VS项目中的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我猜清单文件将通过链接器嵌入到PE文件中。我知道清单文件可以控制UAC,或者阻止应用程序兼容助手。

今天我下载一个旧的项目表单codeproject.com,找到一个清单文件,内容是:

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 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>



当我从项目中排除清单并重建时,运行它但窗口中的控件在OS窗口7下丢失了漂亮的外观。

我对此非常好奇,并且想知道什么生效?


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?

推荐答案

Windows XP及更高版本的Visual-Styles依赖于Common-Control Library Version 6.

comctl32.lib库必须链接,你需要清单告诉版本。

Additiona你必须初始化库以使用一些较新的控件。
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.


这篇关于.manifest文件在VS项目中的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆