On Feb 6, 2008 9:27 PM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Thomas Heller schrieb: > > Roman Yakovenko schrieb: > >> Good morning. > >> > >> I got error while calling comtypes.client.GetModule function. > [...] > > The msdia71.dll typelibrary is buggy. The microsoft oleview utility, for > > example, > > decompiles an idl file which contains these snippets: > [...] > > > > What can you do? There are several options: > > - fix the generated Python code manually: replace the parameter > > declarations by valid ones > > - try to compile a tlb yourself from the dia2.idl file that is also > > provided (I tried this > > but the compiler did not find a cvconst.h file that is imported by this > > idl). > > Seems I answered too soon. > > I found the cvconst.h file, and compiling dia2.idl resulted in a typelib with > the same problems > that you described. I have to investigate this further.
Thank you very much for your efforts. Unfortunately I have very basic COM knowledge and I thought, may I say expected :-) , comtypes will keep me long away from it. I will check the new versions, may be they don't have such problems. I will let you know. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users