1
typedef union __rfun_gop_event_info
{
unsigned int evt;
struct
{
unsigned int reserved1:1;
unsigned int reserved0:1;
unsigned int f30:1;
unsigned int f29:1;
}frame;
}rfun_gop_event_info;
2)
typedef union __rfun_gop_event_info
{
unsigned int evt;
struct
{
unsigned int reserved1:1;
unsigned int reserved0:1;
unsigned int f30:1;
unsigned int f29:1;
}frame;
}rfun_gop_event_info;
謝謝。
請使用「代碼「功能來呈現您的代碼示例。 – Apalala 2011-01-10 12:11:02
檢查這個問題 - http://stackoverflow.com/questions/282019/how-to-simulate-bit-fields-in-delphi-records – Vladimir 2011-01-10 12:13:31