Error encountered when Carchive

xiaoxiao2021-03-06  39

Using "CFile File; File.Open (_T (" Rad.cfg ", CFile :: ModeRead | CFile :: MODENOTRUNCATE | CFILE :: MODECREATE); CARCHIVE AR (& File, Carchive :: Load); Myradio.Serialize AR.Close (); "The following error message received: An Attempt Was Made to Access An Unnamed File Past ITS End. After the estimation, find out the reason, because there is no content in the file, so When visited, did not get the result, so it was wrong. But finding serialization is still very easy to use, the program has been able to save the current information normally. The last code is as follows: BOOL CRADDLG :: OnNitDialog () {cdialog :: OnInitdialog (); cfile file; if (file.open (_t ("// Memory card //rad.cfg"), carch :: {carchive ar (", carchive :: load); myradio.serialize Ar); ar.close ();}} void craddlg :: onClose () {// Todo: add your message handler code here; file; // _ (_t ("// memory card // Rad.cfg "), cfile :: modewrite | cfile :: modenotruncate | CFILE :: MODECRUNCATE | CFILE :: MODECREATE); CARCHIVE AR1 (& File, CARCHIVE :: Store); myradio.serialize (ar1); ar1.close (); file.close ); Cdialog :: onClose ();

转载请注明原文地址:https://www.9cbs.com/read-70094.html

New Post(0)