最近在学vc++,用的《跟我学vc++6.0》,上面有一个fourup的示例,但是我把它输入进去,就是编译不通过,多谢各位大虾,帮忙解决一下~~出错代码
void CMy4UPDlg::OnBnClickedCancel()
{
// TODO: 在此添加控件通知处理程序代码
CString s;
s.Format("Great game ! You have $ %2f left.",m_Amt_Remaining);
MessageBox(s,"Thanks for playing 4UP !"); CDialog::OnCancel();
}报错1>  error C2664: “void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)”: 不能将参数 1 从“const char [34]”转换为“const wchar_t *”
1>        with
1>        [
1>            BaseType=wchar_t,
1>            StringTraits=StrTraitMFC_DLL<wchar_t>
1>        ]
1>        与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换1>        error C2664: “CWnd::MessageBoxW”: 不能将参数 2 从“const char [25]”转换为“LPCTSTR”
1>        与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换多谢~~