Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to change offline/online programatically

How to change offline/online programatically

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestionc++helptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pc_dev
    wrote on last edited by
    #1

    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:

    B 1 Reply Last reply
    0
    • P pc_dev

      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:

      B Offline
      B Offline
      baerten
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • B baerten

        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

        P Offline
        P Offline
        pc_dev
        wrote on last edited by
        #3

        This application runs on lan, so no dialup needed, ftp server is also on same lan.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups