[python-win32] Problem passing a VARIANT argument to a methodof aCOM object

Mark Hammond mhammond at skippinet.com.au
Wed Feb 8 01:55:32 CET 2006


> STDMETHODIMP CTTOrderSelector::AddTest(LPCSTR
> lpProperty, VARIANT vValue)
>
> LPCSTR is not a valid COM type, but somehow it is
> correctly handled in C#. The authors claim that their
> C# client code has been tested and is known to work
> correctly.

I assume that the C# implementation is using the vtable interfaces and
making the call directly - ie, *not* going via IDispatch.

Can they show an early-bound VB example that works, or anything else that
will go via IDispatch?

There aren't any hacks I can think of - maybe ctypes could work.

Mark.



More information about the Python-win32 mailing list