I'm trying to open a CFile using this code:
I get an internal compiler error number C1001. All optimizations are turned off for the debug version. This is happening in MSVC 6.
CFile::modeCreate || CFile::modeNoTruncate ||
errorText.Format("Could not open file\n %s",cause);
Either way the file is not being opened because it says it cannot find it. However if you notice I use CFile::modeCreate which should create the file regardless if it exists or not.