[python-win32] Help calling IProgressDialog Interface
Thomas Heller
theller at ctypes.org
Fri Feb 22 19:02:00 CET 2008
Larry Bates schrieb:
> I've spent all morning searching and I just can't seem to find the TypeLibrary
> name for this COM interface. I've searched the registry, scanned COM browser
> list at least a dozen times, etc. Some information about this COM object is
> located here:
>
> http://www.com.it-berater.org/COM/windows_shell/interfaces/IProgressDialog%20.htm
>
> It appears to be located in browseui.dll, but that didn't help either.
>
> I also tried using pythoncom.CoCreateInstance, but it reports:
>
> >>> pdlg=pythoncom.CoCreateInstance('{F8383852-FCD3-11d1-A6B9-006097DF5BD4}', No
> ne, 1, '{EBBC7C04-315E-11d2-B62F-006097DF5BD4}')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: There is no interface object registered that supports this IID
>
> I'm hoping that someone out there can assist?
Quite some com objects do not have a type library; probably those that are only
supposed (by MS) to be used by C++ code.
Sometimes an .idl file can be found somewhere in the SDKs which you can
compile into a .tlb file, sometimes not.
Sometimes someone who wants to use the object from VB writes an idl file
and compiles a typelib (but you could also try it yourself, maybe).
With a little googling I found a zip-file containing such a library:
http://www.msjogren.net/dotnet/eng/samples/vb6_progdlg.asp
However, this typelib would not help if you are using pywin32; comtypes
would probably be able to use it - I haven't tried it myself.
Thomas
More information about the python-win32
mailing list