#pragma comment(lib, "Version.lib")
#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"")
你可以查找关于vc mainfest的用法。
这个问题,你可以这样子解决:
打开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_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
//把#ifdef _UNICODE 这句,和最后一句#endif,去掉全部重新生成即可
如:
//#ifdef _UNICODE
//.................
//#endif
VC++做出像Win98风格的就对了。。。界面用VC++做想做的美观得用很多控件库的,而且要一个美工来规划排版,然后控件之间的交互通讯同步什么的无比麻烦。一个小小的建议,你用VC++做上位机的核心功能部分,然后打包成DLL或者控件,用其他更好用的界面工具规划开发界面,通过调用来实现功能。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)