A
Angel
How would I convert this struct into C#?
typedef struct
{
char rsvd0[4];
struct { //embedded struct
char a;
} foot;
ADDR_REC stack[10]; //This is the continuous problem
} ZIP4_PARM;
The ADDR_REC looks like this:
typedef struct
{
char detail_code;
char zip_code[5+1];
} ADDR_REC;
The original function call is:
int z4adrinq(ZIP4_PARM *parm);
The dll function is the only part of the application that accesses the
ADDR_REC stack. Since it's written in C, I assume it accesses it similar to
ZIP4_PARM.ADDR_REC[0].detail_code = 'xx'. I only need to convert the struct
so, when I send it to the function, it'll be able to write to it.
Angel
PS - A few years ago, when the USPS started working on a C# application that
interacts with the dll, they mentioned that, according to MS, C# didn't have
the capability to access an embedded record.
typedef struct
{
char rsvd0[4];
struct { //embedded struct
char a;
} foot;
ADDR_REC stack[10]; //This is the continuous problem
} ZIP4_PARM;
The ADDR_REC looks like this:
typedef struct
{
char detail_code;
char zip_code[5+1];
} ADDR_REC;
The original function call is:
int z4adrinq(ZIP4_PARM *parm);
The dll function is the only part of the application that accesses the
ADDR_REC stack. Since it's written in C, I assume it accesses it similar to
ZIP4_PARM.ADDR_REC[0].detail_code = 'xx'. I only need to convert the struct
so, when I send it to the function, it'll be able to write to it.
Angel
PS - A few years ago, when the USPS started working on a C# application that
interacts with the dll, they mentioned that, according to MS, C# didn't have
the capability to access an embedded record.