Einzelnen Beitrag anzeigen

NicoDE
(Gast)

n/a Beiträge
 
#9

Re: C struct nach Delphi record

  Alt 14. Dez 2005, 14:36
Zitat von Reiner12:
Code:
typedef union {
           WORD W;
           struct { BYTE xorsum;
                    BYTE nullen;
                  };
 } TChkSum;
Delphi-Quellcode:
type
  PChkSum = ^TChkSum;
  TChkSum = record
    case Integer of
      0: (
        W: Word;
        );
      1: (
        xorsum: Byte;
        nullen: Byte;
        );
  end;
  Mit Zitat antworten Zitat