今天我用VC2005建了一个基于对话框的程序,在对话框里加了个List Control,编译没问题,Debug的时候报错说找不到MFC80UD.DLL,但是我前些天用CListView写的一个程序并没有这个问题,Google了一下找到几个答案,说得很费解,后来我直接在工程里加了一个从CListView派生的类再删掉程序就正常了。发现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
估计这些语句添加了那些支持项吧。
posted on 2006-09-14 11:06 一个咸蛋的唠叨 阅读(3129)
评论(2) 编辑 收藏