hello,
Whow I can Save Class on The File , by using CFlie in Visual C++,
I know that by use ( fstream.h ) in C++ , But I wont To Save File and locd it by CFile to use the New Teqnology.
CFile and CArchive are not new technology, they are actually quite old. They are classes from the Microsoft Foundation Classes, a very Microsofty class library.
The classes from <fstream> (not <fstream.h>, it is deprecated) however are part of the C++ standard and available everywhere.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
void CSaveCalssToFileDlg::OnSaveCcate()
{
CCat c1,c2;
c1.name="cete";
c1.age=2;
c1.Color="whight";
// whew I Can save c1 opject to file by CFile Class
}