最近移植vs2005工程到vs2008发现了manifest的用处,之前在nt平台xp style的界面风格也没有太在意,在程序中没有加入,但是到了vista平台发现用它默认的界面风格已经很不错了,对比二者的stdafx.h会发现manifest的用处和引用方法,#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
还是要读读msdn相关的资料,这样的程序跑起来负担最小,最优化!
还有是在vista平台下增加了UAC的功能所以在manifest中一定要设置
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
            <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
        </requestedPrivileges>
    </security>
</trustInfo>

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2021-08-22
  • 2021-05-16
  • 2022-01-22
  • 2022-01-20
  • 2022-01-01
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-10-04
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
相关资源
相似解决方案