Skip to content

Instantly share code, notes, and snippets.

@j2doll
Created March 30, 2018 03:09
Show Gist options
  • Select an option

  • Save j2doll/36c4aa9f9273a371e7d59edd9e188b24 to your computer and use it in GitHub Desktop.

Select an option

Save j2doll/36c4aa9f9273a371e7d59edd9e188b24 to your computer and use it in GitHub Desktop.
Tes tCArchive CString
TCHAR pFileName[] = _T("test123.test");
CFile f;
if( !f.Open( pFileName, CFile::modeCreate | CFile::modeWrite ) ) {
#ifdef _DEBUG
afxDump << _T("Unable to open file\n");
exit( 1 );
#endif
}
CArchive ar( &f, CArchive::store );
CString STR1 = _T("hello");
ar << STR1 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment