1.第一个错误提示
error C2664: “void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)”: 不能将参数 1 从“const char [26]”转换为“const wchar_t *”
with
[
BaseType=wchar_t,
StringTraits=StrTraitMFC_DLL<wchar_t>
]
与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
error C2664: “void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)”: 不能将参数 1 从“const char [26]”转换为“const wchar_t *”
[
BaseType=wchar_t,
StringTraits=StrTraitMFC_DLL<wchar_t>
]
与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
e:\c++.net\hwl\mousedemo\mousedemo\mousedemoview.cpp(132) : error C2039: “formt”: 不是“ATL::CStringT<BaseType,StringTraits>”的成员
2.第二个错误提示
AfxMessageBox("this is an AfxMessageBox");
错误 error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types
解决办法:
AfxMessageBox(_T("没有可处理图像!!!"));