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
Invoking a COM object method, that results in two arrays [message #61304] Fri, 11 July 2008 09:32 Go to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
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. The corresponding code looks like the following:

------------
; generate COM object
MyXtremeLibObject =
OBJ_NEW('IDLcomIDispatch$CLSID$IDENTIFIER_FROM_WINDOWS_REGIS TRY')

; invoke the function
resulting_array = MyXtremeLibObject -> THE_FUNCTION(some, para, meters)
------------


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.

------------
# invoke the method
result2 = MyXtremeLibObject -> THE_SECOND_FUNCTION(some, para, meters)
------------

In this case the variable result2 has only two elements with zeros in
it:
result2[0] => 0.0
result2[1] => 0.0

Maybe these elements could be something like pointers to the addresses
of arrays, but I did not find a way to use it in IDL.
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.

I would be happy, if someone can give me a hint for solving my problem.
Best regards

Karlo
[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 15:33:47 PDT 2025

Total time taken to generate the page: 0.00402 seconds