Thema: Delphi C++ nach Delphi

Einzelnen Beitrag anzeigen

Muetze1
(Gast)

n/a Beiträge
 
#4

Re: C++ nach Delphi

  Alt 12. Aug 2007, 00:59
Nein, du hast die Arrays übersehen.

Delphi-Quellcode:
type
  uint8 = byte;
  uint16 = word;
  uint32 = longword;
  TAuth= packed record
    cmd: uint8;
    error: uint8;
    size: uint16;
    gamename: array[0..3] of uint8;
    version1: uint8;
    version2: uint8;
    version3: uint8;
    Build: uint16;
    platform: array[0..3] of uint8;
    os: array[0..3] of uint8;
    Country: array[0..3] of uint8;
    timezone: uint32;
    ip: uint32;
    I_len: uint8;
    I: array[0..1] of uint8;
  end;
Bei den meisten Arrays liegt aber die Vermutung nahe, dass es sich um Zeichen Arrays handelt also wahrscheinlich nicht array[] of uint8 sondern array[] of char.
  Mit Zitat antworten Zitat