SafeArray problem

Michael Weiss FooWeissBarMike at hotmail.com
Wed Jun 19 08:55:31 EDT 2002


How is the safearray parameter defined in the IDL on this method? [in, out]
[in] [out, retval], etc...?

<pixie888 at hotmail.com> wrote in message
news:3d105710.83643750 at news.skynet.be...
> Hi all,
>
> I am using an Automation object which has a method which takes a
> SafeArray as an argument. In my Python module I call this method and
> give a list of longs as an argument.
>
> While debugging (using the VC++6 IDE) I notice that the type of the
> argument (upon entering my automation object) is VT_ERROR (argument
> not found, actually). Now, what is really odd is the following: I
> extended my method: it takes two arguments, the first being a
> SafeArray and the second a long (which will not be used). When I call
> this method again from my Python module (with a list of longs and a
> dummy long as arguments) then everything works fine.
>
> Beats me, really.
>
> Any idea where the problem lies?
>
> Thanks,
>
> Henk





More information about the Python-list mailing list