Форум: "WinAPI";
Текущий архив: 2002.06.27;
Скачать: [xml.tar.bz2];
ВнизПроблема с GetHostByName Найти похожие ветки
← →
chernoruk (2002-04-25 20:45) [0]Type
pHostInfo=^thostInfo;
ThostInfo = record
h_name: PChar;
h_aliases: ^PChar;
h_addrtype: Smallint;
h_length: Smallint;
h_addr_list: ^PChar;
end;
...
var
host :pHostInfo;
address :integer;
begin
host:=gethostbyname(pChar("localhost"));
address:=host^.h_addr_list ????????(что писать дальше, чтоб в результате получить 127.0.0.1)
end;
← →
Song (2002-04-26 08:22) [1]String:=inet_ntoa(PInAddr(host^.h_addr_list)^);
← →
chernoruk (2002-04-29 07:38) [2]А что такое PInAddr?
Страницы: 1 вся ветка
Форум: "WinAPI";
Текущий архив: 2002.06.27;
Скачать: [xml.tar.bz2];
Память: 0.44 MB
Время: 0.009 c