PavelGur
Programmer
- Sep 21, 2001
- 75
I'm trying to use CArchive to read a text file line by line.
I create a file object and then try to create CArchive object. The first trouble, if I put file creation in try/catch then CArchive does not see the file object. If I comment out try/catch then CArchive see the file but I'm getting compile diagnostic message 2653 that is not even in MDSN: error C2653: 'Archive' : is not a class or namespace name
Any ideas?
Thanks, Pavel.
I create a file object and then try to create CArchive object. The first trouble, if I put file creation in try/catch then CArchive does not see the file object. If I comment out try/catch then CArchive see the file but I'm getting compile diagnostic message 2653 that is not even in MDSN: error C2653: 'Archive' : is not a class or namespace name
Code:
CFile f(szInxFileName, CFile::modeRead );
CArchive ar(&f, Archive::load, 512, szBuf);
Thanks, Pavel.