SafeArray problem

pixie888 at hotmail.com pixie888 at hotmail.com
Wed Jun 19 09:23:15 EDT 2002


On Wed, 19 Jun 2002 08:55:31 -0400, "Michael Weiss"
<FooWeissBarMike at hotmail.com> wrote:

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

I have not written an idl-file myself, I just used the classwizard in
Visual Studio to write my method on the automation object (using MFC).
What do you really want to know? (I looked for idl-files in my project
but did not find any)

><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