![]() |
Sonderzeichen in Konsolenanwendung: Ansi2OEM
Hi!
Muetze1 stellt ![]()
Delphi-Quellcode:
function Ansi2OEM(Const AString: String): String;
var lResult: String; begin SetLength(lResult, Length(AString)); {$IFDEF WIN32} CharToOEM(PChar(AString), PChar(lResult)); {32Bit} {$ELSE} AnsiToOEM(PChar(@AString[1]), PChar(@lResult[1])); {16Bit} {$ENDIF} Result := lResult; end; Benötigt wird dabei die Unit "Windows" Ciao Frederic |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:26 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