[python-win32] COM question

Bob Olson olson@mcs.anl.gov
Mon, 30 Sep 2002 23:35:23 -0500 (CDT)


> However, if this is true, I can see no reason why Python would fail - what
> error did you get?

I didn't get an error, but I didn't get a value returned back (as I
recall; it's been a couple months since I poked at this).

> If you want to get dirty enough, you can coerce pythoncom to pass *any* type
> through IDispatch interfaces.  makepy generated code calls _ApplyTypes_ - a
> cleverly crafted call to this function can almost certainly pass the object
> with the correct semantics, even if the IDL does not match the way the code
> actually operates.  Of course, it is simply possible that win32com has never
> ever seen a "byval object" before.

Hm, I'll have to poke at this some more (later, am off on vacation for
three weeks, whee!)

--bob