Thanks Jason, by using your advice I found the problem, I was doing
something really stupid, I had mistyped the command line argument.

cheers,
Carlos

----- Original Message ----- 
From: "Jason Teagle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 11:24 AM
Subject: RE: [msvc] Problem with CFile


> > 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]
>
>
>
> _______________________________________________
> msvc mailing list
> [EMAIL PROTECTED]
> See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.



Reply via email to