Re: Retrieve 2D Variant Array

rick ong <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
This is what i have tried:

Variant[][] obj = new Variant[10][];
obj = (Variant [][])parentObj.get("Data");

However, it gives me a ClassCastException Error. From the documentation of
the COM object, the size of 1st dimension is 10, while the second dimension
is unknown. It should be storing double values.

Is there anything i am missing here? Thanks.

Rick

>From: Roger I Martin PhD <[email protected]>
>Reply-To: Discussion of Java/Win32/COM integration with Jawin
><[email protected]>
>To: [email protected]
>Subject: Re: [JAWIN] Retrieve 2D Variant Array
>Date: Tue, 19 Oct 2004 11:29:23 -0400
>
>Abhishek J Ratani wrote:
>
>>I would suggest you to use JNIWrapper since their support is much stronger
>>and it just costs very little. I had tried to use this newsgroup and use
>>jawin, but nobody responded to my two e-mails.
>>
>>But who knows, they might respond to you.
>>
>>AJ
>>
>>
>>
>I'll try to get active again.  Been traveling too much and my other
>projects are more interesting.   However, there may be something I need
>Jawin for coming up.
>
>You have example you can show?
>
>There are limitations with the marshaling that can only be over come by
>a rewrite(I didn't write the original).  I've talked of rewriting but
>every time I look at ATL and COM code my skin starts to itch. Either
>increases or decreases  in the dynamic dimension of objects on the
>argument byte array are not handled by Jawin.  Return from a function, yes.
>
>I'm out tomorrow but should be back Thursday,Friday.  If you have a tlb
>that can be used as an example that would be great.
>
>Cheers,
>
>Roger

_________________________________________________________________
Find it on the web with MSN Search. http://search.msn.com.sg/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.