I am writing out a CMyClass object (very simple class, contains a couple of integers and a BOOL) using CFile
if( !f.Open( _T("C:\\Test.txt"), CFile::modeCreate | CFile::modeWrite | CFile::typeBinary ) ) ASSERT(FALSE);
CMyClass myClass(1, 2, TRUE);
if( !f.Open( _T("C:\\Test.txt"), CFile::modeRead | CFile::typeBinary ) ) ASSERT(FALSE);
CMyClass* pmyClass = new CMyClass();
and all this works fine.
My concern is now that I am thinking about adding a CString member to the class, I dont want to break anything if the CString contains foreign characters.
In short, is what I am currently doing going to be UNICODE safe ?