Home »
Public Forums »
archive »
pass a struct point which is in another struct,from C to IDL by DLM.
pass a struct point which is in another struct,from C to IDL by DLM. [message #87415] |
Fri, 31 January 2014 18:24 |
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.
|
|
|
Current Time: Wed Oct 08 09:09:19 PDT 2025
Total time taken to generate the page: 0.00376 seconds