V
VMI
How can I convert this struct into a C# struct? The problem with this one is
that one of its members is an array of ADDR_REC(another struct), and the API
function (written in C) writes to this part of the struct. I call the
function with struct CITY_REC as parameter and the API function writes to
this stack. Any help is appreciated. I've converted ADDR_REC to C# but I
have no idea what to do with CITY_REC.
typedef struct
{
char mpnum[10+1];
ADDR_REC stack[10];
} CITY_REC;
typedef struct
{
char detail_code;
char zip_code[5+1];
char update_key[10+1];
} ADDR_REC;
that one of its members is an array of ADDR_REC(another struct), and the API
function (written in C) writes to this part of the struct. I call the
function with struct CITY_REC as parameter and the API function writes to
this stack. Any help is appreciated. I've converted ADDR_REC to C# but I
have no idea what to do with CITY_REC.
typedef struct
{
char mpnum[10+1];
ADDR_REC stack[10];
} CITY_REC;
typedef struct
{
char detail_code;
char zip_code[5+1];
char update_key[10+1];
} ADDR_REC;