On Feb 10, 2008 7:45 PM, Roman Yakovenko <[EMAIL PROTECTED]> wrote: > The code generation works fine. I was able to create main object > DiaSource, but for some reason I was not able to call > "loadDataFromPdb" method. > > I've got "AttributeError: 'DiaSource' object has no attribute > 'loadDataFromPdb'" exception. > > > Can you attach the script you created? I am sure I am doing something wrong. > > msdia = comtypes.client.GetModule( r'D:\Program Files\Microsoft Visual > Studio .NET 2003\Visual Studio SDKs\DIA SDK\bin\msdia71.dll' ) > ds = msdia.DiaSource() > ds.loadDataFromPdb('xxx.pdb')
Okey, I found my problem and solution: ds = comtypes.client.CreateObject( msdia.DiaSource ) ds.loadDataFromPdb(control_pdb) -- 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