Posted on 2001-09-13
I have the following code (snippet)
if (! szTemplateFile.Open(m_szTemplateParameterData, CFile::modeRead | CFile::shareDenyWrite, pFileError))
ErrorText = "Can not open file " + m_szTemplateParameterData;
FileErr.m_lpszErrorDescription = ErrorText;
FileErr.m_nErrorCode = pFileError->m_cause;
When I pass a valid file name into the function I don't have any problems. When I pass an invalid file name into the function I get an unhandled exception error, and I find that pFileError has no information in it. Any ideas as to what I am doing wrong?