How to check whether system is connected to internet using VC++?
-
Hi, I have a requirement where I need to find out whether internet is available or not. How to achieve this using VC++? THanks Suhas
You can use InternetGetConnectedState (http://msdn.microsoft.com/en-us/library/aa384702(VS.85).aspx[^]) to check whether you *might* be connected - but the only guarantee is to attempt a connection to your desired website. Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
Hi, I have a requirement where I need to find out whether internet is available or not. How to achieve this using VC++? THanks Suhas
Supra2 wrote:
How to achieve this using VC++?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons