Вниз
Скачать: CL | DM;

Проблема с 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.009 c
1-88843
ZyreX
2002-06-17 11:20
2002.06.27
Траблы с WNetEnumCachedPasswords


1-88929
Korona
2002-06-14 20:26
2002.06.27
TForm1.Create(Screen)


3-88696
sergikkkk
2002-06-01 11:50
2002.06.27
interbase


1-88917
любитель
2002-06-14 12:56
2002.06.27
Что не правельно делаю?


1-88832
Чайник2
2002-06-17 09:16
2002.06.27
DelphiX




   Наверх