I thought I read somewhere something aboutsupporting on IWebBrowser2.
I am totally shooting in the dark here and don't know what I'm talking
about, but since I don't see a lot of responses to questions here, I
thought I'd chime in.
Hi folks, hope I've got the right list...
I'm developing an application using C++, and I want to embed the mozilla
browser. I figured the easiest way to do this was to use COM and the
mozilla active X control developed by Adam Lock. I've come up with a simple
application to display slashdot in an ILOG Views dialog. ILOG uses a
special control view adapter to integrate COM components with it's GUI
toolkit. I have the following code:
/////////////// Begin Code ////////////////////////////
#include <SpyPanel.h>
#define FILENAME "SpyPanel.ilv"
#include <ilviews/base/sstream.h>
#include <ilviews/windows/comgint.h>
#include <ilviews/base/inter.h>
#import "D:\Program Files\Netscape\Netscape 6\mozctl.dll" no_namespace
named_guids
ILVSTDUSE
//
--------------------------------------------------------------------------
void
CSpyPanel::initialize()
{
readFile(FILENAME);
IWebBrowser* pInterface = 0;
IWebBrowserPtr browser;
IlvGraphicCOMAdapter* control = getspycontrol();
HRESULT errcode =
control->queryInterface(__uuidof(IWebBrowser),
(void**)&pInterface);
if(errcode == S_OK)
{
browser->Navigate("http://slashdot.org");
}
}
//////////// End Code /////////////////////////////////////
In this case I get the error code 0x80004002, which corresponds to the
error message
"No such interface supported".
What am I doing wrong here?
Cheers and TIA,
Oli White