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

Как получить IP своего компьютера?   Найти похожие ветки 

← →
dimanew   (2002-08-23 10:37) [0]

Сабж собственно.


← →
Wonder ©   (2002-08-23 11:14) [1]

Поиск собственно.


← →
ППавел   (2002-08-23 12:23) [2]

Используй следующую функцию:

Uses Winsock;

function MyIP : string;

type
TaPInAddr = array [0..10] of PInAddr;
PaPInAddr = ^TaPInAddr;
var
phe : PHostEnt;
pptr : PaPInAddr;
Buffer : array [0..63] of char;
I : Integer;
GInitData : TWSADATA;
begin
WSAStartup($101, GInitData);
Result := "";
GetHostName(Buffer, SizeOf(Buffer));
phe :=GetHostByName(buffer);
if phe = nil then
begin
Exit;
end;
pptr := PaPInAddr(Phe^.h_addr_list);
I := 0;
while pptr^[I] <> nil do
begin
result:=StrPas(inet_ntoa(pptr^[I]^));
Inc(I);
end;
WSACleanup;
end;


← →
NeyroSpace   (2002-08-23 14:04) [3]

IPHlpApi.dll



Страницы: 1 вся ветка

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



Память: 0.45 MB
Время: 0.025 c
6-78555
Sour
2002-08-18 17:04
2002.10.24
Как получить почту по POP3, не используя VCL?


8-78531
antistatic
2002-05-21 07:34
2002.10.24
Нужно проиграть звук при наведении на компонент


1-78414
Miss
2002-10-15 15:16
2002.10.24
???


1-78480
Mishka
2002-10-13 10:21
2002.10.24
mciSendStringA из winmm.dll


1-78451
AndrX.
2002-10-12 17:03
2002.10.24
Вывод сообщения по времени указанному в...




   Наверх