IDispatch question
-
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."
-
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."
-
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.