Serialization
-
Hi! I'm trying to make serialization to work, I tried this: try { CFile file(_T("SerialTest.dat"), CFile::modeWrite | CFile::modeCreate); CArchive ar(&file, CArchive::store); int a = 3,b = 5; CString str(_T("Hello")); if( ar.IsStoring() ) { ar<ReportError(); e->Delete(); } The file is created, but is empty.. any ideas? thanks Mykel Everything's beautiful if you look at it long enough...
-
Hi! I'm trying to make serialization to work, I tried this: try { CFile file(_T("SerialTest.dat"), CFile::modeWrite | CFile::modeCreate); CArchive ar(&file, CArchive::store); int a = 3,b = 5; CString str(_T("Hello")); if( ar.IsStoring() ) { ar<ReportError(); e->Delete(); } The file is created, but is empty.. any ideas? thanks Mykel Everything's beautiful if you look at it long enough...
-
Hi! I'm trying to make serialization to work, I tried this: try { CFile file(_T("SerialTest.dat"), CFile::modeWrite | CFile::modeCreate); CArchive ar(&file, CArchive::store); int a = 3,b = 5; CString str(_T("Hello")); if( ar.IsStoring() ) { ar<ReportError(); e->Delete(); } The file is created, but is empty.. any ideas? thanks Mykel Everything's beautiful if you look at it long enough...
Close the archive before closing the file:
ar.Close();
file.Close();:-D -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;)