Re: VARIANT array out params

Stefan Zschocke <[email protected]> Thu, 11 Aug 2005 15:57:11 +0200
Newsgroups gmane.comp.windows.devel.jawin
Organization infoZoom
Message-ID <[email protected]>
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.