[python-win32] Re: Using py2exe with COM server question

Cory Dodt corydodt@yahoo.com
Tue, 1 Apr 2003 13:15:07 -0800 (PST)


> I'm confused about how to 'properly' handle the _reg_clsid_ 
> attribute of the class.  It is my understanding that this needs 
> to come from pythoncom.CreateGuid() on the machine where the COM
> object is being installed and it is unique to that machine.

Guid stands for 'globally unique ID', with emphasis on the word global. 
The recipe shows the guid hard-coded because that really is the right way
to do it.  A Guid is a promise that any object with this clsid conforms to
the same interface as every other object with that guid, on any machine,
anywhere in the universe.

It's perfectly ok to 'print pythoncom.CreateGuid()' in an interactive
browser and paste that into your _reg_clsid_.


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com