I have application that needs to load local html file if user is offline, if not it will load his web application via embedded control.
How to check if user is online with c++ desktop application that has embedded ie browser control?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can try using the InternetGetConnectedState function. However, make sure you honor the comments given in the Remarks section, especially:
You may also try to directly use the InternetCheckConnection function for your particular URL.
There are also newer COM interfaces that have the same (or better) functionality: