Hallo.
Ich habe auf der folgenden Seite:
http://www.delphi32.com/info_facts/faq/faq_432.asp
einen Hinweis gefunden, wie ich einfach feststellen kann, ob ich mit dem Internet verbunden bin, oder nicht.
Und zwar angeblich einfach so:
Testing if you are connected to the internet
How can I tell at runtime if I am connected to the internet?
You can use the TCP component to retrieve the Local IP address. If it is „0.0.0.0“ then there is no connection.
Example:
procedure TForm .Button Click(Sender: TObject); begin if TCP .LocalIp = ‚0.0.0.0‘ then ShowMessage(‚Your not connected!‘); end; 4/2/99 :47: 3 AM
Nur leider finde ich irgendwie die komponente TCP nicht, und ich ahbe schon die Enterprise-Verion. Allerdings Version 4, gibts die vielleicht erst ab 5? Oder ist das gar keine Standard-komponente?
Danke, Gruß Jens.