Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CArchive class is not recognized by VC++ compiler

Status
Not open for further replies.

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
Code:
   CFile f(szInxFileName, CFile::modeRead );
   CArchive ar(&f, Archive::load, 512, szBuf);
Any ideas?
Thanks, Pavel.
 
Sorry, I can see my error. It should have been CArchive::load in parameters.
Pavel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top