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?