Delphi Record Pack to C#????

Joined
Apr 19, 2008
Messages
2
Reaction score
0
Convert Packed Record to C# Type
PRecKey = ^RecKey;
RecKey = Packed Record
Key_Command : Array[0..2] of Char;
Key_Pan_Type : Char;
Key_Format : Char;
Key_E_Pin : Array[0..15] of Char;
Key_Terminal : Array[0..4] of Char;
Key_Key_Type : Char;
Key_OffSet : Array[0..3] of Char;
Key_Pan : Array[0..19] of Char;
Key_Pad_Char : Char;
Key_Pin_length : Array[0..1] of Char;
Key_Master_key : Array[0..1] of Char;
Key_Old_E_Pin : Array[0..15] of Char;
Key_KEK_WK : Array[0..47] of Char;
end;

Definition:
rbuf : array[0..1023] of char; // contain data
key : PRecKey;


Using in delphi:

key := PRecKey(@rbuf[0]);


There is way to turn it to C # .net 2005?????
Is possible?


Thanks....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top