CreateGuid() will create a new GUID each time it is registered. That will
end up creating "turds" in your registry. Generate the GUID once and
hard-code it in, as the samples do.
Your main problem is that you forgot the "self" param in the method.
Cheers,
Mark
-Original Message-
From:
Hi!
Your function pyCOMSplit is a method of the class PythonCOMServer. Please,
add'self', like this :
def pyCOMSplit(self, StringFromVB):
It's all
Michel Claveau
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mail
Ok, I'm about 90% there nowI've used the Simple.py from page 213, because there is less involved.when I run it- I see the registration messages. All is good so far.I made one tiny change, related to the call to CreateGuid()
import pythoncomclass PythonCOMServer: _public_methods_ = ['pyCOMSplit']
Thank you a lot !
That just work as you said :)
coool
Roger Upole wrote:
>The class instance that's passed to your dispatch class
>methods is actually the original COM object, so you
>ought to be able to set an attribute on it to communicate
>that the event was called. In other words, in your O