CString sFilePath = "C://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aa.NMF"; try { CFile ScreenFile(sFilePath, CFile::modeRead | CFile::typeBinary ); CArchive LoadArchive(&ScreenFile, CArchive::load, ScreenFile.GetLength()); lResult = ReadDrawSO(LoadArchive); LoadArchive.Read(&m_VersionNo , sizeof(VERSION_NO_STRUCT)); } LoadArchive.Close(); ScreenFile.Close(); } catch(CFileException* e) { DWORD dwError = GetLastError(); if ( ERROR_FILE_NOT_FOUND == dwError) { CString sMsg; LOADSTRING( MESSAGE_STRING, IDS_STRING212, &sMsg );//IDS_STRING212 : "%s was not found." CString sError; sError.Format( sMsg, sFilePath ); AfxMessageBox( sError ); } e->Delete(); }
Error 'LoadArchive' : undeclared identifier
LoadArchive
try
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)