...
> >
> >I found a strange behaviour when I use a python-COM-Server together with
> VB.
> >
> >
>
> Not VB, but rather VBS. They are two rather different languages.
>
...
Hi Tim,
Thanks for your answer.
Actually the same problem arises if you use VB or VBA. So the difference
between VB and
Ok, what you told me works for this simple program:
class HelloWorld: _reg_clsid_ = "{4E5807E3-C445-4A3C-A4BC-FD81697B661A}" _reg_progid_ = "Python.TestServer" _public_methods_ = ['Hello'] def __init__(self): pass
def Hello(self, who): return "Hello" + who
regsvr32
I'm afraid you probably need to pull win32com.client.WithEvents apart and
manually setup your own event handler class. Different events do need
different functions (although it should be possible to add the same event
handler to 2 different event sources.
Cheers,
Mark
> -Original Message---