how to use def QueryInterface(self, riid) of wx.lib.iewin

what is the correct foramt riid?

how can i call the function correctly?

thanks

···


※※※※※※※※※※※※※※※※※※※※※※※※
My blog: http://blog.donews.com/ygao
Forum http://groups.google.com/group/python_study

※※※※※※※※※※※※※※※※※※※※※※※※

ygao wrote:

what is the correct foramt riid?

how can i call the function correctly?

thanks

This is Win32 COM stuff. The RIID is a 128bit global unique identifier
known as a GUID (see ).
What exactly are you trying to achieve?

···

http://en.wikipedia.org/wiki/GUID

I want to handle this activex event.

def OnNewWindow2(self, evt):
self.logEvt(evt)
# Veto the new window. Cancel is defined as an “out” param
# for this event. See iewin.py
evt.Cancel = True

the evt .ppdisp require the IDispatch interface.

but how to get this.I want to though the QueryInterface

I failed to do this.

ie = iewin.IEHtmlWindow(self, -1, style = wx.NO_FULL_REPAINT_ON_RESIZE)

can’t call ie. QueryInterface successfully.

···

On 4/23/06, Eli Golovinsky egooli@gmail.com wrote:

ygao wrote:

what is the correct foramt riid?

how can i call the function correctly?

thanks

This is Win32 COM stuff. The RIID is a 128bit global unique identifier known as a GUID (see
http://en.wikipedia.org/wiki/GUID
).

What exactly are you trying to achieve?
--------------------------------------------------------------------- To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


※※※※※※※※※※※※※※※※※※※※※※※※
My blog: http://blog.donews.com/ygao
Forum
http://groups.google.com/group/python_study

※※※※※※※※※※※※※※※※※※※※※※※※

ygao wrote:

I want to handle this activex event.
    def OnNewWindow2(self, evt):
        self.logEvt(evt)
        # Veto the new window. Cancel is defined as an "out" param
        # for this event. See iewin.py
        evt.Cancel = True
the evt .ppdisp require the IDispatch interface.
but how to get this.I want to though the QueryInterface
I failed to do this.
ie = iewin.IEHtmlWindow(self, -1, style = wx.NO_FULL_REPAINT_ON_RESIZE)
can't call ie. QueryInterface successfully.

Support for the IDispatch and etc. has not been added to the wx.activex module yet. You'll need to use the old wx.lib.activexwrapper module and the PyWin32 modules instead. I posted an example last week or so to this list.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

thanks very much.

I successfully hander the newwindow2 event.

···

On 4/25/06, Robin Dunn robin@alldunn.com wrote:

ygao wrote:

I want to handle this activex event.
def OnNewWindow2(self, evt):
self.logEvt(evt)
# Veto the new window. Cancel is defined as an “out” param
# for this event. See iewin.py
evt.Cancel = True

the evt .ppdisp require the IDispatch interface.

but how to get this.I want to though the QueryInterface
I failed to do this.
ie = iewin.IEHtmlWindow(self, -1, style = wx.NO_FULL_REPAINT_ON_RESIZE)
can’t call ie. QueryInterface successfully.

Support for the IDispatch and etc. has not been added to the wx.activex
module yet. You’ll need to use the old wx.lib.activexwrapper module and
the PyWin32 modules instead. I posted an example last week or so to

this list.


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org


※※※※※※※※※※※※※※※※※※※※※※※※
My blog: http://blog.donews.com/ygao
Forum
http://groups.google.com/group/python_study
※※※※※※※※※※※※※※※※※※※※※※※※