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

Home » Public Forums » archive » Structure in argument #2 -> With IDL ActiveX control
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: Structure in argument #2 -> With IDL ActiveX control [message #13773 is a reply to message #13641] Thu, 26 November 1998 00:00 Go to previous messageGo to previous message
Skiso is currently offline  Skiso
Messages: 5
Registered: August 1998
Junior Member
I understand that it is impossible to pass a entire structure from IDL to VB. But,
why can't I just pass the value of one field of a structure like this:

Example: MyVB_variable = IDLDrawWidget.GetNamedData("MyIDL_structure.my_variable")

It would be _very_ useful!

Skiso



Mark Leaming wrote:

> 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.
> =====================================================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding PSD Mean Frequency
Next Topic: Varaibles higher on the stack

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

Current Time: Fri Oct 10 11:39:03 PDT 2025

Total time taken to generate the page: 1.28209 seconds