Einzelnen Beitrag anzeigen

Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#518

Re: Balanced das Spiel für Starke Nerven und Starke Graphikk

  Alt 24. Jun 2007, 19:06
du sollt sie nicht in strings umwandeln.

Delphi-Quellcode:
type
  TDataRec = record
    aString: string[128];
    aFloat: float;
    aByte: Byte;
  end;


function MakeString(drec: TDataRec): string;
begin
  Setlength(Result, sizeof(drec));
  CopyMem(@drec,@Result[1],sizeof(drec));
end;
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat