static CString strcompare[]={"he.xml","hehe.xml"}; int offset=std::find(strcompare,strcompare+sizeof(strcompare)/sizeof(*strcompare),CString("he.xml"))-strcompare; switch(offset) { case 0: { COpenexample1 xmlDlg; xmlDlg.setFileName(fileName); xmlDlg.DoModal(); break; } case 1: { COpenexample1 xmlDlg; xmlDlg.setFileName(fileName); xmlDlg.DoModal(); break; } default: { cout << "database is not found you filename!!!"<< "\n"; } } if (fDlg.DoModal() == IDOK) //the mean is you check OK button;
{ TiXmlDocument doc; doc.LoadFile(fDlg.GetPathName()); }
}
|
出上错误:“__w64 int”转换到“int”,可能丢失数据
解决方式: 关闭 64位的支持!
阅读(1035) | 评论(0) | 转发(0) |