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. COM
  4. IDispatch question

IDispatch question

Scheduled Pinned Locked Moved COM
questionhtmlcomhelp
3 Posts 2 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.
  • T Offline
    T Offline
    themancer
    wrote on last edited by
    #1

    i used builder 6 and got the whole cppbrowser to work but now i want to save the html into a text file,how do i convert the IDispatch to string? this is what the help tells me.but honestly i don't understand "Use Document to access an IDispatch interface for manipulating the contents of the HTML document through the COM object model. If there is no active document, Document is NULL. That is, you must first load a document using the Navigate or Navigate2 method before you can manipulate it using the Document interface. For more information about this interface, see the document object section of Microsoft’s Dynamic HTML reference."

    M 1 Reply Last reply
    0
    • T themancer

      i used builder 6 and got the whole cppbrowser to work but now i want to save the html into a text file,how do i convert the IDispatch to string? this is what the help tells me.but honestly i don't understand "Use Document to access an IDispatch interface for manipulating the contents of the HTML document through the COM object model. If there is no active document, Document is NULL. That is, you must first load a document using the Navigate or Navigate2 method before you can manipulate it using the Document interface. For more information about this interface, see the document object section of Microsoft’s Dynamic HTML reference."

      M Offline
      M Offline
      myshketer
      wrote on last edited by
      #2

      IDispatch is the standart interface, why you need it save? The help just known you that Document inherited from IDispatch. If you want to save html look for methods in Document that allow you to get HTMLBody as string and after that save it.

      T 1 Reply Last reply
      0
      • M myshketer

        IDispatch is the standart interface, why you need it save? The help just known you that Document inherited from IDispatch. If you want to save html look for methods in Document that allow you to get HTMLBody as string and after that save it.

        T Offline
        T Offline
        themancer
        wrote on last edited by
        #3

        there where no methods for getting the string.but i got it working. why i wanted to save the html was for the "background" history on the pc just for fun.

        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