Hello,

First, hats off to comtypes, and ctypes which is such a great addition
to Python's stdlib!

I just recently started playing with comtypes trying to automate
processing of some data sets in Excel-Access-Matlab combination.

I noticed that there are some missing methods in generated interface
for Matlab automation server component. If I use CreateObject() with
dynamic=True everything works fine though.

The problem seems to be in tlbparser.Parser.ParseDispatch() fcn where
it skips first 7 methods if first method listed is QueryInterface.
Matlab's tlb lists only the IUnknown methods (QueryInterface, AddRef,
Release), but not the IDispatch methods, so next four methods after
the 3 IUnknown methods from the interface are skipped.

There's a quick patch in attachment, I ran test_client.py,
test_excel.py and test_word.py on patched version and there were no
errors.

Cheers,

Attachment: comtypes_skip_IDispatch_methods.patch
Description: Binary data

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to