C# .NET - problem with passing values to char array

krishna k posted at 01-Mar-06 03:28
hi every one,

here iam having the problem about charecter array.

In C Language he used pass the values as bellow

public unsafe struct x25data
{
char xd_data[];
int xd_len;
}

but here he is passing values as follows

x25data.xd_data[0]=0x42;
x25data.xd_data[1]=0x07;
x25data.xd_data[2]=0x07;

how can we pass the same values in C#.net.

can we pass them as he passed in c.

help me in this please.

Click here to sign in and reply. You could earn money via our message board contest just for being helpful.
  problem with passing values to char array - krishna k  01-Mar-06 03:28 3:28:33 AM
      Array - Shallu Gupta  01-Mar-06 03:45 3:45:07 AM
          cannot convert string[] to char[] will occur know - Raja yashwanth Reddy Gunda  01-Mar-06 04:32 4:32:37 AM
              convert hexadecimal values to char - Pankaj Sharma  01-Mar-06 04:45 4:45:59 AM
                  convert hexadecimal values to char - Pankaj Sharma  01-Mar-06 04:48 4:48:52 AM
                  clarification on the values saved in the example - Raja yashwanth Reddy Gunda  01-Mar-06 05:04 5:04:42 AM
View Posts

  

Search

search



Purchase