m_pRecentFileList...
-
Hi, In my application I get the recent opened file from m_pRecentFileList variable. Here is the code CString the_File=(*m_pRecentFileList)[0]; OpenDocument(the_File); In OpenDocument I have pDoc->Load(CComVariant(lpszPathName)); Here it always fails. But If I give the path directly, ie CString the_File="c:\\text.abc" It works fine. Regards Neha
-
Hi, In my application I get the recent opened file from m_pRecentFileList variable. Here is the code CString the_File=(*m_pRecentFileList)[0]; OpenDocument(the_File); In OpenDocument I have pDoc->Load(CComVariant(lpszPathName)); Here it always fails. But If I give the path directly, ie CString the_File="c:\\text.abc" It works fine. Regards Neha
Neha wrote: pDoc->Load(CComVariant(lpszPathName)); what is the document type of pDoc?
MSN Messenger. prakashnadar@msn.com
-
Neha wrote: pDoc->Load(CComVariant(lpszPathName)); what is the document type of pDoc?
MSN Messenger. prakashnadar@msn.com
-
Hi, In my application I get the recent opened file from m_pRecentFileList variable. Here is the code CString the_File=(*m_pRecentFileList)[0]; OpenDocument(the_File); In OpenDocument I have pDoc->Load(CComVariant(lpszPathName)); Here it always fails. But If I give the path directly, ie CString the_File="c:\\text.abc" It works fine. Regards Neha
Neha wrote: OpenDocument(the_File); Have you put a breakpoint on this statement to see the value of
the_File
?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)