RandyHann <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Using the com.jacob.com.* and com.jacob.activeX.* packages, I have been 
> interacting with IE Browser fine.  I want to now use Mozilla, however, I 
> cannot seem to get too far.
> 
> Below is the bit of code needed to open an IE browser.  I try todo same 
> with Mozilla activeX, and I get error.
> 
> Has anyone else tried to interface with a Mozilla browser before or
> can make suggestions what i might be doing wrong?
> 
> Thanks in advance for anyone who can help!
> 

Hi there,

To invoke Mozilla as an OleControlSite I use the following:

      OleControlSite clientSite = new OleControlSite(frame, SWT.NONE,
"Shell.Explorer")
      {
         protected GUID getClassID(String clientName)
         {            
            GUID mozillaGUD = new GUID();
            mozillaGUD.data1 = 0x1339B54C;
            mozillaGUD.data2 = 0x3453;
            mozillaGUD.data3 = 0x11D2;
            mozillaGUD.b0 = (byte) 0x93;
            mozillaGUD.b1 = (byte) 0xB9;
            mozillaGUD.b2 = 0x00;
            mozillaGUD.b3 = 0x00;
            mozillaGUD.b4 = 0x00;
            mozillaGUD.b5 = 0x00;
            mozillaGUD.b6 = 0x00;
            mozillaGUD.b7 = 0x00;
            return mozillaGUD;         
         }        
      };

     clientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
     clientSite.doVerb(OLE.OLEIVERB_SHOW);

     OleAutomation webBrowser = new OleAutomation(clientSite);

Yeah, it's a bit of a hack but it works well for me. For interacting
with the browser check out the code at:

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/snippits/snippet123.html

Good luck with using Mozilla!!! 

I've had to change to IE because: (1) Mathml doesn't render properly 
[Bug 223819] and (2) Java applets don't run [Bug 223378] when
embedding the ActiveX control into Java :(

I wish someone could help me out :-/

Nick
--
N.Hart <[EMAIL PROTECTED]>
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to