> BOOL CMyDoc::OnOpenDocument(LPCTSTR lpszPathName)
>
> {
>
>
>
>             CFile file( lpszPathName, CFile::modeRead );
>
>             (.)
>
>             return TRUE;
>
> }
>
> If the application is launched from within the VC IDE (6.0) using
> a command
> line argument (defined in the debug settings) I get an unhandled exception
> (Unhandled exception in Myapp.exe (kernell32.dll. E06D7363. Microsoft C++
> Exception) in the first line that builds a CFile object. However if the
> program is launched externally, it works correctly. Am I missing anything
> trivial here?

That form of the CFile constructor throws a CFileException - try catching
that to see if that is the "unhandled exception".

--
Jason Teagle
[EMAIL PROTECTED]




Reply via email to