> >>> r.ref > <COMObject EA.Repository> > >>> r.ref.GetLastError() > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > TypeError: 'unicode' object is not callable > >>> r.ref.GetLastError > u'' > >>>
Can you provide a short example that also includes how the object is created? > However, GetLastError() is a function according to specs and Makepy.py The code above is not using makepy, even though it may have been run. You could try creating the object using win32com.client.gencache.EnsureDispatch instead of plain Dispatch, but you may still strike the same error. If you do, it generally means the object is not telling us what type it is, so we can't associate it with a makepy interface. We can work around this though. > One more strange thing: > MakePy recognised the object as "IRepository" rather then "Repository" I'm not sure what you mean here. Please post a complete code sample, including all output that confuses you or you believe to be wrong. Cheers, Mark _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32