frozen win32com problem

Mark Hammond mhammond at skippinet.com.au
Fri Jan 4 00:37:35 EST 2002


Gordon McMillan wrote:
 > Robin Becker wrote:

 >>def _cat_registrar():
 >>  return pythoncom.CoCreateInstance(
 >>    pythoncom.CLSID_StdComponentCategoriesMgr,
 >>    None,
 >>    pythoncom.CLSCTX_INPROC_SERVER,
 >>    pythoncom.IID_ICatRegister
 >>    )

...


>>
>>this is on an NT4 system that has no python/pythonwin etc. Any ideas
>>what I'm missing/haven't registered?
>>
> 
> You seem to be asking for INPROC_SERVER. That means COM loads 
> pythoncomXX.dll which (implicitly) loads pythonXX.dll. There's no chance for 
> the import hooks to get installed.


Actually, the code is only trying to get a reference to a standard COM 
object, not a Python implemented one.  I assume that the test program 
works OK when not frozen, or is this only on a single machine "in the 
field"?

Mark.




More information about the Python-list mailing list