Giganews Newsgroups
Subject: Connect()
Posted by:  duf (d…
Date: Sat, 17 May 2008

How to check if there is connection with internet or host ?
I tried to do it like this:

if ( !POP3Client->Connected() )
    catch ( const Exception& e ) {  MessageDlg( e.Message, mtWarning , TMsgDlgButtons() << mbOK, 0 ); }

But if there is no connection with internet or mailbox is unreachable and I try to connect with my mailbox there is exception like "host not found".
In my programme I would like to have my own message dialogue with my own warring and possibility to take decision what to do next.