ee_lcpaa
asked on
Network Connection
Hi All,
How to detect the status of the network connection,
I hope my application can pop-up a dialog to notice the user when the connection has been disconnected.
Note: I want to do the same thing as the software ICQ.
Also, the network may be connected by using the dial-up networking or at the LAN.
How can I do this?
Thank you very much for your help!!!
How to detect the status of the network connection,
I hope my application can pop-up a dialog to notice the user when the connection has been disconnected.
Note: I want to do the same thing as the software ICQ.
Also, the network may be connected by using the dial-up networking or at the LAN.
How can I do this?
Thank you very much for your help!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dear jhance & chensu,
I am using the Visual C++ 5.0 Professional Edition to implement my application. After including the file <wininet.h> and linking with the file wininet.lib, I still cannot use the function InternetGetConnectedState.
What is the problem about this?
regards,
ee_lcpaa
I am using the Visual C++ 5.0 Professional Edition to implement my application. After including the file <wininet.h> and linking with the file wininet.lib, I still cannot use the function InternetGetConnectedState.
What is the problem about this?
regards,
ee_lcpaa
You need the latest Platform SDK, which can be found on MSDN CDs or can be downloaded at
http://msdn.microsoft.com/developer/sdk/platform.asp
http://msdn.microsoft.com/developer/sdk/platform.asp
The version of VC++ is not relevant, but your header files are out of date.
Specifically, you need WININET.H and WININET.LIB out of the current SDK.
The function InternetGetConnectedState( ) itself is in WININET.DLL included on any Windows system with IE4.0 or later installed.
Specifically, you need WININET.H and WININET.LIB out of the current SDK.
The function InternetGetConnectedState(
ASKER
Hi jhance and chensu,
My PC had already installed IE 5.0. I still cannot use the function
InternetGetConnectedState( ).
Furhter, I have installed the Microsoft Platform SDK (January 2000) at my PC. But I found the header file wininet.h and the lib file wininet.lib had not been changed also.
I found Only the wininet.dll had been updated.
Can you tell me how can I obtain the update version of the file wininet.h and wininet.lib?
Thank you very much!!!
My PC had already installed IE 5.0. I still cannot use the function
InternetGetConnectedState(
Furhter, I have installed the Microsoft Platform SDK (January 2000) at my PC. But I found the header file wininet.h and the lib file wininet.lib had not been changed also.
I found Only the wininet.dll had been updated.
Can you tell me how can I obtain the update version of the file wininet.h and wininet.lib?
Thank you very much!!!
>But I found the header file wininet.h and the lib file wininet.lib had not been changed also.
You must have looked at the Visual C++ directories. The Platform SDK is installed separately. By default, it is in the \Program Files\Platform SDK directory. You need to change your Visual C++ options (menu Tools/Options..., Directories tab) so that it uses the Platform SDK header files and library files.
You must have looked at the Visual C++ directories. The Platform SDK is installed separately. By default, it is in the \Program Files\Platform SDK directory. You need to change your Visual C++ options (menu Tools/Options..., Directories tab) so that it uses the Platform SDK header files and library files.
http://support.microsoft.com/support/kb/articles/Q242/5/58.ASP