comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Invoking a COM object method, that results in two arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Invoking a COM object method, that results in two arrays [message #61564 is a reply to message #61304] Fri, 18 July 2008 11:29 Go to previous message
rtowler is currently offline  rtowler
Messages: 28
Registered: June 2006
Junior Member
Karlo Janos wrote:
> Hello!
>
> Currently I am successfully using a function of the library
> XtremeFringe (http://www.iot.es/XtremeFringe/index.html) in IDL 7.0 by
> instantiating a COM object and then invoking its method with the needed
> parameters.

<snip>

> This works for a function, that results in just one single array.
> But in the case of a function resulting in two arrays it does not.

<snip>

> In Matlab one gets the results in a cell array by something like
>
> ------------
> result=XFLib.The_Function(some, para,meters);
> resultarray1=result{1};
> resultarray2=result{2};
> ------------
>
> In IDL I do not know how to do it in a similar way.


What are the types of the data in each of the cell arrays?

If they are different then there is no way you'll be able to use IDL's
COM interface. The problem is that IDL doesn't have an equivalent to
COM's VARIANT type. MATLAB's cell type is equivalent to COM's VARIANT
which works out quite well for MATLAB.

I would love to see ITT extend IDL's COM interface to support VARIANT
types via pointer arrays. I have a nearly complete ADO/COM based
database class written but as long as you can only return one data
type at a time it is fairly useless. I have a feature request in but
I'm not holding my breath.

-Rick

N 062 00.12
E 179 51.60
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Displaying degree symbol with Postscript fonts
Next Topic: plot,lat,lon

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:25:04 PDT 2025

Total time taken to generate the page: 0.00402 seconds