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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32