Re: VARIANT array out params

Daniel Graham <[email protected]> Thu, 11 Aug 2005 09:52:50 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Thanks for that,

unfortunately jawin's SAFEARRAY doesn't seem to have any members by which I
can specify which Variant it is to hold.

What I'd like to do is store an array of Variant.ByrefHolder inside the
array of Variant but There is no variant type for the ByrefHolder ..

driving me nuts .. _everything_ else is fine with this library and the
ActiveX control I'm wrapping.

Any other suggestions?

Thanks for your time,

Cheers,

Danny


On Thu, 11 Aug 2005 15:57:11 +0200, Stefan Zschocke <[email protected]>
wrote:

>Hi, I don't know exactly how jawin works, but I assume it is similar to
>jacoZoom, that when the typelibrary declasres an
>[out] VARIANT* then this is mapped to Variant[], being a array of 1
>element.
>The Variant contained inside might well be a SAFEARRAY - possibly a
>safearray of variant, in which case the vt of Results[0] ought to have
>the value VT_ARRAY | VT_VARIANT.
>If this is the case you must extract the Safearray and from the
>safearray extract the first variant, and check if it is of type VT_R8
>(double).
>Stefan
>Author of jacoZoom Java-COM bridge for Professionals.
>
>-----Original Message-----
>From: Discussion of Java/Win32/COM integration with Jawin
>[mailto:[email protected]] On Behalf Of Daniel Graham
>Sent: Thursday, August 11, 2005 3:15 PM
>To: [email protected]
>Subject: [JAWIN] VARIANT array out params
>
>
>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.
>
>I've trawled the archives for this, but not found an answer.
>
>Regards,
>
>Danny.