VS2003程序转到VS2005之后XP风格丢失的解决办法
2008-02-15 18:20
639 查看
在Exe文件对应的工程中,将stdafx.h中添加如下的代码,编译之后即可:
#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
#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
相关文章推荐
- VS2003程序转到VS2005之后XP风格丢失的解决办法【转】
- Visual C++ 6.0 中 MFC 单文、多文档程序工具栏在 XP 风格下显示不正常的解决办法
- VS2005编译的程序在XP系统下不能运行的解决办法
- VS2005编译的程序在XP系统下不能运行的解决办法
- VS2005编译的程序在XP系统下不能运行的解决办法
- 使程序界面具有XP风格(在VS2003和VS2005中)
- 解决VC2005下开发ActiveX控件中丢失VC2005自带的XP界面风格的问题
- 双击打开Excel文件要反应很久之后才能打开,先开excel程序,再打开文件就很快的解决办法
- 安卓按home键之后,再次点击程序图标避免再次重新启动程序解决办法
- xp登录密码丢失解决办法
- VS2005 :Fatal Error C1902:程序数据库管理器不匹配,解决办法
- 在SQL Server 2005 Express 中添加报表服务后 (Business Intelligence Development Studio) vs2005 加载程序集问题解决办法
- 正在运行的android程序,按home键之后退回到桌面,在次点击程序图标避免再次重新启动程序解决办法
- 关于winXP和win7,vs2010,opencv2.3,运行程序,报错“计算机丢失tbb_debug.dll”问题解决办法
- 在vmware下安装xp和ubuntu双系统之后ubuntu系统下鼠标的定位不准确的解决办法
- VS2005的程序运行时提示没有找到MSVCR80D.dll的解决办法(附加自己亲自试验)
- 安装autoCAD之后屏幕保护程序(*.scr)打不开的解决办法
- 正在运行的android程序,按home键之后退回到桌面,在次点击程序图标避免再次重新启动程序解决办法
- 在SQL Server 2005 Express 中添加报表服务后 (Business Intelligence Development Studio) vs2005 加载程序集问题解决办法
- 安卓按home键之后,再次点击程序图标避免再次重新启动程序解决办法