![]() |
Problem mit Unicode und inet_addr()
Hallo,
Ich habe ein Edit mit dem Inhalt 127.0.0.1. Was muss ich bei folgendem Code ändern, damit er mir wieder 127.0.0.1 anzeigt?
Delphi-Quellcode:
Unter Delphi 2007 hat es funktioniert, unter Delphi 2009 nicht mehr.
showmessage(inet_ntoa(tinaddr(inet_addr(pansichar(edit1.text)))));
//habs schon hinbekommen, stand mal wieder voll aufm Schlauch, Danke :cyclops: |
Re: Problem mit Unicode und inet_addr()
Zitat:
Delphi-Quellcode:
ShowMessage(inet_ntoa(TInAddr(inet_addr(PAnsichar(AnsiString(Edit1.Text))))));
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:03 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 by Thomas Breitkreuz