Re: VARIANT array out params

Morten Andersen <[email protected]> Thu, 25 Aug 2005 17:07:38 +0200
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Danny,

Sorry for answering so late on your question - been away on vacation for
the last 14 days.

Daniel Graham wrote:
> Hi all,
>
> I've a dispatch interface with a Variant array out parameter.
>
> I can't see a way to specify that I simply want a single double out of the
> array list ..
>
> The parameter on the generated stub is : Variant[] Results, which, clearly,
> is an out param .. but potentially an array of them.

Have you read the section 2.3.1 in the Jawin Userguide - Calling a
Scriptable COM Interface:
        http://jawinproject.sourceforge.net/jawinuserguide_dispatch.html#dispatchptr_usage_methods

Does this cover your case too? (yes, I know unfortunately you will have
to hack the generated stub a little bit).

Oh, and by the way - you need the "2.0-alpha1" version for this to work
- but I assume you are already using this.

Good luck, best regards
Morten