How to change offline/online programatically
-
In my MFC application i have to connect to an ftp server, i do it this way sess.GetFtpConnection(servername,username,password); The above mentioned function works smoothly if the "work offline" option in internet explorer is unchecked. if the "work offline" option is checked then the above funtion throws an exception with message "The computer is disconnected from network", It looks there is some global variable that controls the connectivity, which is set/unset by work ofline option in internet explorer, How can i set/unset this option programatically? or there is some other reason of this problem. Thanks in advace:rose:
-
In my MFC application i have to connect to an ftp server, i do it this way sess.GetFtpConnection(servername,username,password); The above mentioned function works smoothly if the "work offline" option in internet explorer is unchecked. if the "work offline" option is checked then the above funtion throws an exception with message "The computer is disconnected from network", It looks there is some global variable that controls the connectivity, which is set/unset by work ofline option in internet explorer, How can i set/unset this option programatically? or there is some other reason of this problem. Thanks in advace:rose:
Hi, i'm not sure, but i don't think that has a relation. I never tried, but i think the "work offline" mode is only related to the Internet Explorer, so that no connection is set and all websites in the cache could be displayed without the internet... But you have also the option "Deal no connection*" so, don't have a internet connection if you use a modem ( in case of a router you have always a connection there ) Do you tested this case some times? * i don't now the exact grammatically sentence
-
Hi, i'm not sure, but i don't think that has a relation. I never tried, but i think the "work offline" mode is only related to the Internet Explorer, so that no connection is set and all websites in the cache could be displayed without the internet... But you have also the option "Deal no connection*" so, don't have a internet connection if you use a modem ( in case of a router you have always a connection there ) Do you tested this case some times? * i don't now the exact grammatically sentence