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

Home » Public Forums » archive » Returning a struct containing variable-length arrays
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
Returning a struct containing variable-length arrays [message #62548] Mon, 15 September 2008 15:28
franzpx125 is currently offline  franzpx125
Messages: 6
Registered: September 2008
Junior Member
Hi!

Within my DLM, I need to return a struct containing two arrays but the
length of the arrays is known only at run-time. Which is the correct
way to write the DLM code? I think I have to use IDL_MAX_ARRAY_DIM and
I defined:

static IDL_MEMINT my_tags_dims[] = { 1, IDL_MAX_ARRAY_DIM };

static IDL_STRUCT_TAG_DEF my_tags[] = {
{ "X", my_tags_dims, (void *) IDL_TYP_DOUBLE },
{ "Y", my_tags_dims, (void *) IDL_TYP_DOUBLE },
{ 0 }
};

but I don't know how to fill the fields of this struct. Any help?

Thanks,
Brun Francesco
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL is giving me a syntax error out of nowhere
Next Topic: very simple Index question~~~help~~~

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

Current Time: Fri Oct 10 16:24:16 PDT 2025

Total time taken to generate the page: 1.03870 seconds