![]() |
Re: Array of Char Frage
hmmm, hab mich mit binarystream noch nicht so befasst. wie könnte man den das realisieren?
gruß bernd |
Re: Array of Char Frage
Delphi-Quellcode:
statt einem AnsiString könnte man auch leicht ein Byte-Array oder Dergleichen verwenden
var ini: TIniFile;
stream: TStream; S: AnsiString; stream := TMemoryStream.Create; try ini := TIniFile.Create('name.ini'); try ini.ReadBinaryStream('section', 'ident', stream); stream.Position := 0; SetLength(S, stream.Size); stream.ReadBuffer(S[1], stream.Size); finally ini.Free; end; finally stream.Free; end; // in S wären nun die Daten drin |
Re: Array of Char Frage
Das ist ne sehr interessante sache, werd ich mal umsetzen.
Vielen Dank! Gruß Bernd |
Re: Array of Char Frage
Hallo,
Ich habs mal ausprobiert und ich hab festgestellt das nun S als string behandelt wird. Der Drucker druckt S aus. Gruß Bernd |
Re: Array of Char Frage
Zeig doch mal Deinen Code.
|
Re: Array of Char Frage
ich verwende den Code von himitsu.
und füge S dann ein
Delphi-Quellcode:
gruß bernd
WriteLn (d,s);
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:11 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz