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

Home » Public Forums » archive » pass a struct point which is in another struct,from C to IDL by DLM.
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
pass a struct point which is in another struct,from C to IDL by DLM. [message #87415] Fri, 31 January 2014 18:24
xiaofeishu0527 is currently offline  xiaofeishu0527
Messages: 1
Registered: January 2014
Junior Member
Hi:
I want to pass a struct point which is in another struct,from C to IDL by DLM.
like this:
struct AcDb2Dpoly{
IDL_STRING d2poly_id;
double d2poly_thickness;
IDL_VPTR d2poly_vertices;
IDL_LONG polyType;
};
d2poly_vertices is want to pass another sturct in c.
for example:
typedef struct {
IDL_STRING id;
IDL_STRING NAME;
UCHAR BlockColor[3];
double PTO[3];
}AcDbBlock;

AcDbBlock is the content I want to pass by d2poly_vertices.
the problem is how to write the code in c? using IDL_MakeTempArray() to add the struct to the d2poly_vertices?
or the problem is how to put the AcDbBlock into a IDL_VPTR?

can anybody help me? thanks very much.

Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to convert RGB image into a binary image ?
Next Topic: find out name of file from "lun" unit number

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

Current Time: Wed Oct 08 09:09:19 PDT 2025

Total time taken to generate the page: 0.00376 seconds