|
-
May 14th, 2005, 03:16 PM
#1
problems with CFile
CFile *ObitFile;
ObitFile->Open(_T("C:\\test.html"), CFile::modeRead); // my prog crashes at this line.
i get the error: Unhandled exception at 0x004136a8 in testapp3.exe: 0xC0000005: Access violation reading location 0x00000000.
the file exists, i tried adding:
int stat;
CFileStatus status;
stat = ObitFile->GetStatus(_T("C:\\test.html"), status);
to make sure i wasn't spelling something wrong, but that returns 1.
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|