Hi,
I have a Doc/View (MDI) app in which I have overridden OnOpenDocument
function:
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?
Any idea?
Thanks,
Carlos