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

Home » Public Forums » archive » Re: Structure in argument #2 -> With IDL ActiveX control
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Structure in argument #2 -> With IDL ActiveX control [message #13587] Wed, 25 November 1998 00:00
mark is currently offline  mark
Messages: 28
Registered: September 1992
Junior Member
On Mon, 23 Nov 1998 08:13:43 -0700, "Matthew J. Sheats"
<sheats@lanl.gov> wrote:

>> Does the GetNamedData() function of the IDL ActiveX control support the
>> structure definition?
>
> Well, the GetNamedData() function returns data as a variant which needs
> casting. If you have a user defined structure, then there isn't a
> default cast for it, but what you might be able to do, is write a VB
> function that could rip the Variant apart into the structure you need.
>
> The only issue is, I don't know how IDL would handle a request to
> return a structure in this way. If it returns bits, then you're ok, but
> if it doesn't know what to do.. you probably will just get an error.
>
> Let me know if you figure it out, I've never tried that before.
>
> Matt Sheats
> Los Alamos National Laboratory

GetNamedData will return an empty variant if the IDL variable that you
are getting is a structure. The data types that you can retrieve
using this function are scalars of type byte, short, long, float,
double and string.



=====================================================
Mark Leaming

Research Systems, Inc.
=====================================================
RE: Structure in argument #2 -> With IDL ActiveX control [message #13620 is a reply to message #13587] Mon, 23 November 1998 00:00 Go to previous message
Matthew J. Sheats is currently offline  Matthew J. Sheats
Messages: 19
Registered: September 1997
Junior Member
> Does the GetNamedData() function of the IDL ActiveX control support the
> structure definition?

Well, the GetNamedData() function returns data as a variant which needs
casting. If you have a user defined structure, then there isn't a
default cast for it, but what you might be able to do, is write a VB
function that could rip the Variant apart into the structure you need.

The only issue is, I don't know how IDL would handle a request to
return a structure in this way. If it returns bits, then you're ok, but
if it doesn't know what to do.. you probably will just get an error.

Let me know if you figure it out, I've never tried that before.

Matt Sheats
Los Alamos National Laboratory
Re: Structure in argument #2 -> With IDL ActiveX control [message #13637 is a reply to message #13620] Fri, 20 November 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Skiso (turlu@hotmail.com) writes:


> Does the GetNamedData() function of the IDL ActiveX control support the
> structure definition?

Not according to my documentation.

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Curious FindFile behavior
Next Topic: Re: vectors on maps

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

Current Time: Fri Oct 10 10:30:35 PDT 2025

Total time taken to generate the page: 1.36051 seconds