[python-win32] Please help with "Library not registered" error
Francis.Kwok at ca.schneider-electric.com
Francis.Kwok at ca.schneider-electric.com
Tue Aug 24 02:39:37 CEST 2010
I'm trying to use Python to wrap a COM library, However I get the
following error:
(-2147319779, 'Library not registered.', None, None)
I've also tried registering the dll with regsvr2.exe
I've tried a ton of thing from the internet and finally ended up with this
tonight:
import win32com.client
file = win32com.client.Dispatch("OptoSnapIoMemMapX.O22SnapIoMemMapX",
resultCLSID= '{54D2FA40-E34F-11D2-9707-080009ABC65D}' )
print dir(file.__class__)
coclass = win32com.client.Dispatch(file, resultCLSID=
'{54D2FA50-E34F-11D2-9707-080009ABC65D}')
print dir(coclass.__class__)
app = win32com.client.CastTo(coclass, 'IO22SnapIoMemMapX')
app.Close()
The auto generated makepy file is quite big, so i didn't cut and paste it.
Thanks in Advance.
Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100823/a015f7cd/attachment.html>
More information about the python-win32
mailing list