Neil Benn wrote:
Hello,
I'm trying to use win32com to access a COM object with Events. After
some searching I discovered the call to
win32com.client.DispatchWithEvent can be used - passing a class
with the method signatures for each event for thrown by the
ActiveX component.
However I'm getting a strange exception from somewhere inside the win32com code and can't find a great deal of documentation on this method on the web. Could anyone help me out as to what's going on. The code is beneath, followed by the exception that occurrs, if I make a call to dispatch the code is working.
<snip> Hello,
Errr, worked it out by reading the PyDoc in the source file. I'm using getevents to create an object (still unsure about the DispatchWithEvents - pass in a class definition : how do I get a reference to the instance?).
Anyways - I have a new problem, the object for the events - the events are not being fired on this instance, ie the methods on mt event object instance are not being called. Needless to say I've created the same implementation using other methodologies to check if the ActiveX component works (VB6) and I'm having no problem. Don't know if it matters but the component is an Out Of Process component (ie an exe).
Thanks for listening.
Cheers,
Neil
--
Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany
Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com
_______________________________________________ Python-win32 mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-win32