Ako ti zatreba detekcija interneta, možeš ovako... Ispišeš funkciju:
Code:
FUNCTION Online : Boolean;
VAR
dwFlags : DWORD;
BEGIN
result := FALSE;
If (InternetGetConnectedState(@dwFlags, 0)) and
(dwFlags and 1 = 1) Then
result := TRUE;
END;
Sad obradiš događaj npr. za Form1 - OnCreate i ubaciš jedan label (label1):
Code:
if Online then
Label1.Caption:='Racunar je uspesno konektovan na internet!!!'
else
Label1.Caption:='Racunar nije uspesno konektovan na internet!!!'
Nije ono što tražiš al možda ti bude interesantno... Pozzzz
If you go out of your mind, do it quietly, so as not to disturb those around you...