Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. m_pRecentFileList...

m_pRecentFileList...

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neha
    wrote on last edited by
    #1

    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

    P D 2 Replies Last reply
    0
    • N 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

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      Neha wrote: pDoc->Load(CComVariant(lpszPathName)); what is the document type of pDoc?


      MSN Messenger. prakashnadar@msn.com

      N 1 Reply Last reply
      0
      • P Prakash Nadar

        Neha wrote: pDoc->Load(CComVariant(lpszPathName)); what is the document type of pDoc?


        MSN Messenger. prakashnadar@msn.com

        N Offline
        N Offline
        Neha
        wrote on last edited by
        #3

        pDoc is an XMLDocument object: Here is the source: IXMLDOMDocument *pDoc; CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER, IID_IXMLDOMDocument, (void**)&pDoc)

        1 Reply Last reply
        0
        • N 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

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups