[python-win32] com object gives a pointer to a C++ struct array back
Mark Hammond
mhammond at skippinet.com.au
Tue Jun 7 00:56:35 CEST 2005
IIRC at a RECORD data type includes any array sizes. Does your IDL
explicitly indicate it is an array of records, or are you declaring it as a
simple record, but then using it as an array?
If the former, please send me a sample of your IDL so I can reproduce the
error. If the latter, then you probably need to adjust your IDL.
Does your code work with VB?
Mark
> -----Original Message-----
> From: python-win32-bounces at python.org
> [mailto:python-win32-bounces at python.org]On Behalf Of Gijs Korremans
> Sent: Monday, 6 June 2005 11:34 PM
> To: python-win32 at python.org
> Subject: [python-win32] com object gives a pointer to a C++
> struct array
> back
>
>
> Hi
>
> one of the functions in a com object I have to use gives me a
> pointer to the firtst struct in an array back. With Python
> it's possible to use the first truct, but is it possible to
> use the others as well?
>
> //for example:
> PointerToFirstStruct = comObj.GetPackets()
> argOne = PointerToFirstStruct.argOne
> argTwo = PointerToFirstStruct.argTwo
> # Go to the next struct
> # PointerToFirstStruct++ doesn't work
>
>
> Kind regards,
>
>
> Gijs
>
> --
> This message has been scanned for viruses and
> dangerous content by Network Sentry, and is
> believed to be clean.
> http://www.networksentry.co.za
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
More information about the Python-win32
mailing list