need to help regarding char array
hi all
here iam using x25 protocol,which was developed using C language.
in this they used declare a variable as a charecter array in a structure as here
struct x25data
{
OSINT xd_len; /* Length in bytes of xd_data */
char xd_data[XD_DATALEN]; /* Data buffer address */
};
how can i write that xd_data in C#
can any one help me in this.
Re: need to help regarding char array
try this:
Code:
struct x25data
{
public OSINT xd_len;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = XD_DATALEN)]
public string xd_data;
}