COM-Error: CoInitalize was not called
Hello guys, I am programming a custom COM-Method. However after I call win32com.client.Dispatch('NameOf.ComObject') a COM-Error raises containing "CoInitalize was not called". I am working with Zope 2.6.0 on W2K and have the win32com, the win32comext and the Pythonwin modules installed in $ZOPEHOME\bin\lib. I have copied the modules from a working ActivePython installation. If I execute the method from the Pythonwin command line, everything works fine. Whats wrong? Regards RA Unternehmensberatung Florian Reiser Tel: +49 (0)7351 37 27 57 Fax: +49 (0)7351 37 27 59 E-Mail: florian.reiser@ra-bc.de
I am programming a custom COM-Method. However after I call win32com.client.Dispatch('NameOf.ComObject') a COM-Error raises containing "CoInitalize was not called". I am working with Zope 2.6.0 on
Call CoInitialize or CoInitializeEx first. eg: from pythoncom import CoInitializeEx, COINIT_MULTITHREADED CoInitializeEx(COINIT_MULTITHREADED) Cheers. -- Andy McKay
On Sunday 26 January 2003 1:13 pm, Florian Reiser wrote:
Hello guys,
I am programming a custom COM-Method.
http://www.zopelabs.com/cookbook/993002968 -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson
participants (3)
-
Andy McKay -
Florian Reiser -
Toby Dickenson