Checking Internet Connection
-
Hi! I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.
-
Hi! I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.
See InternetGetConnectedState()[^]
"Real men drive manual transmission" - Rajesh.
-
Hi! I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.
This http://visualcpp.net/index.php?qID=44[^] may help you. All the best.
-
See InternetGetConnectedState()[^]
"Real men drive manual transmission" - Rajesh.
Hi! Thanks for your reply. I used the following code and get these two errors:
bool connectionStatus = InternetGetConnectedState(INTERNET_CONNECTION_OFFLINE,0);
Errors: d:\downloadversion\downloadversion\Form1.h(31) : error C2065: 'INTERNET_CONNECTION_OFFLINE' : undeclared identifier d:\downloadversion\downloadversion\Form1.h(31) : error C3861: 'InternetGetConnectedState': identifier not found I'm using Windows Forms.
-
Hi! Thanks for your reply. I used the following code and get these two errors:
bool connectionStatus = InternetGetConnectedState(INTERNET_CONNECTION_OFFLINE,0);
Errors: d:\downloadversion\downloadversion\Form1.h(31) : error C2065: 'INTERNET_CONNECTION_OFFLINE' : undeclared identifier d:\downloadversion\downloadversion\Form1.h(31) : error C3861: 'InternetGetConnectedState': identifier not found I'm using Windows Forms.
You'll need to include a header, and link to a library to use this function. Scroll down to the "Requirements" section of the MSDN link I provided you with.
"Real men drive manual transmission" - Rajesh.
-
You'll need to include a header, and link to a library to use this function. Scroll down to the "Requirements" section of the MSDN link I provided you with.
"Real men drive manual transmission" - Rajesh.
Hi! It's told that minimum supported client and server as Windows 2000 Professional and Windows 2000 Server. Will it work with Windows XP? Do I have to download the following to my Solution path? Wininet.h Wininet.lib Wininet.dll
-
Hi! It's told that minimum supported client and server as Windows 2000 Professional and Windows 2000 Server. Will it work with Windows XP? Do I have to download the following to my Solution path? Wininet.h Wininet.lib Wininet.dll
T.RATHA KRISHNAN wrote:
It's told that minimum supported client and server as Windows 2000 Professional and Windows 2000 Server. Will it work with Windows XP?
Windows XP was released after Windows 2000. So, the API will work on XP.
"Real men drive manual transmission" - Rajesh.
-
Hi! It's told that minimum supported client and server as Windows 2000 Professional and Windows 2000 Server. Will it work with Windows XP? Do I have to download the following to my Solution path? Wininet.h Wininet.lib Wininet.dll
try with
#include
#pragma comment(lib,"Wininet.lib") -
try with
#include
#pragma comment(lib,"Wininet.lib")Member 3922639 wrote:
#include #pragma comment(lib,"Wininet.lib")
If I include the above code, I got 283 errors, all in the Wininet.h file(Syntax errors, missing type specifier errors and error C2378: 'HINTERNET' : redefinition; symbol cannot be overloaded with a typedef). Where shall I get the Wininet.h file? Do I have to Download and install Windows SDK to solve all these errors?
-
Member 3922639 wrote:
#include #pragma comment(lib,"Wininet.lib")
If I include the above code, I got 283 errors, all in the Wininet.h file(Syntax errors, missing type specifier errors and error C2378: 'HINTERNET' : redefinition; symbol cannot be overloaded with a typedef). Where shall I get the Wininet.h file? Do I have to Download and install Windows SDK to solve all these errors?
After I included "windows.h", all the errors vanished. Thanks alot.
-
Hi! I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.