C struct
- Posted by tone.skoda at gmx.net
Jun 17, 2002
Did I wrap this C structure right. I get Windows error when trying to use
function from
dll.
MAXP = 5
typedef struct node {
char name[8];
struct node *parm[MAXP];
short tag;
double value;
short sx,sy; /* size */
short px,py; /* location on scrn */
short ay; /* adjust y */
short kind;
short nump;
char *msg;
struct node *next;
} node;
node_name = allot( {8, Strz} ),
node_parm = allot( {MAXP * 4, Strz} ),
node_tag = allot( Word ),
node_value = allot( DWord ),
node_sx = allot( Word ),
node_sy = allot( Word ),
node_px = allot( Word ),
node_py = allot( Word ),
node_ay = allot( Word ),
node_kind = allot( Word ),
node_nump = allot( Word ),
node_msg = allot( Lpsz ),
node_next = allot( Ptr ),
sizeof_node = allotted_size(),
|
Not Categorized, Please Help
|
|