[python-win32] Problem using win32com.client.Dispatch on Win764bit

Tim Roberts timr at probo.com
Mon Apr 11 18:47:42 CEST 2011


Misy wrote:
>> If that's the only object you need to access, you should be done.
>> Go ahead and try to Dispatch it.  However, if there are other
>> related classes (very likely), you'll need to import them into your
>> proxy also.
>>
>>          Roger
> Hi, Roger,
>      
>     Well...I still failed. I rebooted and tried, but it didn't work. And the
> message was the same. Maybe I should go back to the beginning. My error message
> was that:
>
> ---------------------------------------------------
>    IDLE 2.6.6      
>>>> import win32com.client
>>>> com_nxn = win32com.client.Dispatch("NxNNamespace.NxNNamespaceHelper")
> ...
>     IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
> com_error: (-2147221164, '\xc3\xfe\xa7O\xa5\xbc\xb5n\xbf\xfd', None, None)
> -----------------------------------------------------
>
>      It was very strange that the com_error message is a .... binary code, so in
> fact, I am not sure it is the same problem as Eileen's.

-2147221164 is 0x80040154 which is REGDB_E_CLASSNOTREG.  So, soething
has gone wrong in registering your proxy class.  Did you actually
register it?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list