John A. wrote:
On Tue, 11 Feb 2003 15:05:35 +0000, Adam Lock <[EMAIL PROTECTED]>
wrote:

  
John A. wrote:

    
Any chance of someone developing an ActiveX control for embedding
Gecko that doesn't try to mimic IWebBrowser and DWebBrowserEvents, but
rather presents an interface designed specifically for Gecko?  Why be
so limited?

      
The ActiveX control implements an IMozControlBridge interface with a 
single method - GetWebBrowser for this purpose. After creating the 
control normally, QI for this interface and call the method to get ahold 
of the nsIWebBrowser XPCOM interface. You can then start hitting the 
Gecko APIs directly from there though you'd have to be careful not to 
tread on the control's toes, e.g. by unexpectedly releasing things etc.
    

Maybe I'm stupid. How does one do this in VB?
  
You don't. This is just for C++ programmers.

To get Gecko APIs working in VB would require writing an IDispatch bridge of some sort that wrapped XPCOM interfaces and types to look like variants and automation objects. A lot of the type conversion code is already there from the COM connect layer, but it would still need a substantial amount of work of its own. I doubt it's going to happen.

Adam

Reply via email to