如题

解决方案 »

  1.   

    用文本方式打开“程序名.rc2”文件,加入一句:CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "res\程序名.manifest"这个“程序名.manifest”文件是向导产生的,在工程的res\目录下面。
      

  2.   

    http://dev.csdn.net/article/33/33796.shtm
      

  3.   

    // stdafx.h : 标准系统包含文件的包含文件,.
    .
    .
    .
    .
    .
    .
    .
    .#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
      

  4.   

    把你资源目录下的manifest文件拷贝到你exe的目录
    假定叫xp.exe就把这个manifest文件命名为xp.exe.manifest
      

  5.   

    在exe中有个24的资源id为1,把这个样式文件可以并在exe的外挂文件容易丢失,baidu一下