2011-02-12 110 views

回答

0

請確保您嚮應用程序添加了有效的清單。

+0

我已經啓用了清單生成的屬性(這是默認設置) – Kar 2011-02-12 18:45:00

+0

只是因爲清單生成並不意味着它是指定公共控件6.打開Visual Studio中的您(非主題)EXE通過文件>打開並查看對象瀏覽器檢查其資源中的當前清單。 – 2011-02-12 21:45:20

14

嘗試將此添加到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