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

Home » Public Forums » archive » Re: Passing Structures with Pointers with Call_External
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: Passing Structures with Pointers with Call_External [message #40456] Wed, 11 August 2004 07:34 Go to previous message
MajorSetback is currently offline  MajorSetback
Messages: 9
Registered: August 2004
Junior Member
"Peter Mason" <drone@spam.com> wrote in message news:<vDcSc.266$aA.11145@news.optus.net.au>...
> The problem here is that IDL isn't creating the structure quite as you
> expect. There isn't that level of indirection with DATA. Your C-side
> structure should look something like this:
> typedef struct FloatPlane_Struct {
> int Rows;
> int Columns;
> float Data[n];
> } FloatPlane;
> Where the "n" in "Data[n]" is equal to numrows*numcolumns in your IDL-side
> structure creation statement.
> I think this means that you need a different approach as a C-side structure
> definition is fixed at compile time ("n" must be a constant).
>

Just a follow up question I thought of. Is it possible to return a C
structure with pointers to IDL and have IDL interpret it correctly?

Thanks again,
Peter.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: black window on fsc_surface & fsc_surface_log?
Next Topic: Re: Combining subimage data to corresponding X and Y location

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

Current Time: Wed Oct 08 13:56:25 PDT 2025

Total time taken to generate the page: 0.00344 seconds