win32com: getting a list of longs from a C++ COM object
Mark Hammond
mhammond at skippinet.com.au
Fri Dec 6 01:45:41 EST 2002
More information about the Python-list mailing list
Fri Dec 6 01:45:41 EST 2002
- Previous message (by thread): [Baypiggies] ANN: BayPIGgies mtg Wed 11/13 7:30pm (fwd)
- Next message (by thread): win32com: getting a list of longs from a C++ COM object
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Achim Domma wrote: > Hi, > > I have written a COM object (in C++) which returns a list of longs. To make > this list accessible for other scripting languages like VBScript and JScript > I have to declare my function like this: > > HRESULT myFkt([in]BSTR column,[out,retval]VARIANT* ids); > > 'ids' will be a pointer to a variant which contains a SafeArray(ids->vt = > VT_ARRAY|VT_VARIANT). The SafeArray contains variants, which contain the > longs. Is it possible to access this array from python? It works, if I don't > wrap the SafeArray in a Variant, but then it does not work for VBScript and > JScript. It should work. Can you mail me some source - I will try and get similar code to fail in the win32com test harness. Mark.
- Previous message (by thread): [Baypiggies] ANN: BayPIGgies mtg Wed 11/13 7:30pm (fwd)
- Next message (by thread): win32com: getting a list of longs from a C++ COM object
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list