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. Programming an updating feature

Programming an updating feature

Scheduled Pinned Locked Moved C / C++ / MFC
c++announcementsysadminquestion
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.
  • D Offline
    D Offline
    Demonware666
    wrote on last edited by
    #1

    Hello there, I am relativly new to C++ and am currently programming for windows in Visual C++. What I want to know is this: I created a program in which a user enters commands and these commands are compared to functions stored in a seperate .cpp file. This file is in the same folder as the executable but is not part of the solution. Is there a way for the user to enter a command such as 'update' and the program will seek an updated version of the command file and download it from a specified server? i can get everything to work, but I do not know even where to begin will this update feature. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

    B 1 Reply Last reply
    0
    • D Demonware666

      Hello there, I am relativly new to C++ and am currently programming for windows in Visual C++. What I want to know is this: I created a program in which a user enters commands and these commands are compared to functions stored in a seperate .cpp file. This file is in the same folder as the executable but is not part of the solution. Is there a way for the user to enter a command such as 'update' and the program will seek an updated version of the command file and download it from a specified server? i can get everything to work, but I do not know even where to begin will this update feature. ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      Do some form of HHTP reuest against your server to see if a 'newer' file exists. Then download the new file as 'text' so it can pass through HTTP and the firewall, then replace your old command file with the new one.

      D 1 Reply Last reply
      0
      • B Blake Miller

        Do some form of HHTP reuest against your server to see if a 'newer' file exists. Then download the new file as 'text' so it can pass through HTTP and the firewall, then replace your old command file with the new one.

        D Offline
        D Offline
        Demonware666
        wrote on last edited by
        #3

        Thank you ALL YOUR BASE ARE BELONG TO MICROSOFT! Demonware Studios Leader

        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