I have a struct in C++ like thisand ofcourse I want to keep the length of struct fixed)
typedef struct tagDATA{
char name[16];
HEAD2 hd2;// this is a struct
char Cap[256];
int Mount;
int V[8];
double A[8],AH[8],Q[8],W[8],Wat[8];
char Sub[8][32];
int n_s;
BOOL Active;
}DATA;
How can I translate it into C#?
And a struct like this:
typedef struct tagPAR{
short VS;
short rs1;
short rs2;
double Gain;
}PAR; // size= 14 bytes
How can I convert this struct to byte[] array?
Please Help me!
Hien
typedef struct tagDATA{
char name[16];
HEAD2 hd2;// this is a struct
char Cap[256];
int Mount;
int V[8];
double A[8],AH[8],Q[8],W[8],Wat[8];
char Sub[8][32];
int n_s;
BOOL Active;
}DATA;
How can I translate it into C#?
And a struct like this:
typedef struct tagPAR{
short VS;
short rs1;
short rs2;
double Gain;
}PAR; // size= 14 bytes
How can I convert this struct to byte[] array?
Please Help me!
Hien