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. FTP?

FTP?

Scheduled Pinned Locked Moved C / C++ / MFC
databaseadobesysadminquestionannouncement
12 Posts 3 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.
  • T Offline
    T Offline
    Tara14
    wrote on last edited by
    #1

    Hi, I am writing an application in VC6 that has a database, which needs to be updated periodically. The database is going to be .mdb, using DAO to interact with the program (I know this is supposed to be obsolete, but... i like it). To do this, I plan to get the program to connect to a web server where the new database is hosted, download it and replace the old one that is on the user’s computer. Please can you tell me if my approach is correct? Or, is there a better way to do this? How do MS Office, Adobe, win XP… etc update their programs? Thanks

    _


    Fortitudine Vincimus!_

    D L 2 Replies Last reply
    0
    • T Tara14

      Hi, I am writing an application in VC6 that has a database, which needs to be updated periodically. The database is going to be .mdb, using DAO to interact with the program (I know this is supposed to be obsolete, but... i like it). To do this, I plan to get the program to connect to a web server where the new database is hosted, download it and replace the old one that is on the user’s computer. Please can you tell me if my approach is correct? Or, is there a better way to do this? How do MS Office, Adobe, win XP… etc update their programs? Thanks

      _


      Fortitudine Vincimus!_

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Tara14 r, is there a better way to do this?

      Can't you just connect directly to the database on the remote machine? You might consider fixing your user id. The <font> tag is messing replies up.

      "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      T 1 Reply Last reply
      0
      • T Tara14

        Hi, I am writing an application in VC6 that has a database, which needs to be updated periodically. The database is going to be .mdb, using DAO to interact with the program (I know this is supposed to be obsolete, but... i like it). To do this, I plan to get the program to connect to a web server where the new database is hosted, download it and replace the old one that is on the user’s computer. Please can you tell me if my approach is correct? Or, is there a better way to do this? How do MS Office, Adobe, win XP… etc update their programs? Thanks

        _


        Fortitudine Vincimus!_

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Tara14 wrote:

        I plan to get the program to connect to a web server

        Then why is the subject line of your post "FTP"? :confused:

        led mike

        D 1 Reply Last reply
        0
        • L led mike

          Tara14 wrote:

          I plan to get the program to connect to a web server

          Then why is the subject line of your post "FTP"? :confused:

          led mike

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Maybe that's the protocol he wanted to use to download the database file.

          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          T L 2 Replies Last reply
          0
          • D David Crow

            Maybe that's the protocol he wanted to use to download the database file.

            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            T Offline
            T Offline
            Tara14
            wrote on last edited by
            #5

            DavidCrow wrote:

            Maybe that's the protocol he wanted to use to download the database file.

            Thats right. I assumed that in order to do what I am trying to, using FTP is the correct way.

            _


            Fortitudine Vincimus!_

            1 Reply Last reply
            0
            • D David Crow

              Tara14 r, is there a better way to do this?

              Can't you just connect directly to the database on the remote machine? You might consider fixing your user id. The <font> tag is messing replies up.

              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              T Offline
              T Offline
              Tara14
              wrote on last edited by
              #6

              DavidCrow wrote:

              Can't you just connect directly to the database on the remote machine?

              I guess for that, the user would need to be connected to the internet to work with the program. I don't want it that way. Bacically, I just need to update the prices of items in the database. Something like : User selects "Update price list" item in the program's menu - a dialog appears saying 'connecting...' - on establishing a connecting dialog says 'Updateing pirces..' and closes. Thanks, Tara

              _


              Fortitudine Vincimus!_

              D 1 Reply Last reply
              0
              • T Tara14

                DavidCrow wrote:

                Can't you just connect directly to the database on the remote machine?

                I guess for that, the user would need to be connected to the internet to work with the program. I don't want it that way. Bacically, I just need to update the prices of items in the database. Something like : User selects "Update price list" item in the program's menu - a dialog appears saying 'connecting...' - on establishing a connecting dialog says 'Updateing pirces..' and closes. Thanks, Tara

                _


                Fortitudine Vincimus!_

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                So the machines are not on the same intranet? If not, then FTP should be a viable solution.

                "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                T 1 Reply Last reply
                0
                • D David Crow

                  So the machines are not on the same intranet? If not, then FTP should be a viable solution.

                  "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  T Offline
                  T Offline
                  Tara14
                  wrote on last edited by
                  #8

                  DavidCrow wrote:

                  So the machines are not on the same intranet?

                  No, they are not. The program will be deployed on the users personal computer and the database that will be manually modified/updated by the company will be hosted on its webserver. Just curious: how does our operating system (win XP) automatically connect to the net and download updates? What protocal does it use? Thanks, Tara

                  _


                  Fortitudine Vincimus!_

                  L 1 Reply Last reply
                  0
                  • D David Crow

                    Maybe that's the protocol he wanted to use to download the database file.

                    "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                    L Offline
                    L Offline
                    led mike
                    wrote on last edited by
                    #9

                    Ouch, guess I picked a bad day to stop smoking crack. Thought I was back in the days when they were all separate servers :->

                    led mike

                    T 1 Reply Last reply
                    0
                    • T Tara14

                      DavidCrow wrote:

                      So the machines are not on the same intranet?

                      No, they are not. The program will be deployed on the users personal computer and the database that will be manually modified/updated by the company will be hosted on its webserver. Just curious: how does our operating system (win XP) automatically connect to the net and download updates? What protocal does it use? Thanks, Tara

                      _


                      Fortitudine Vincimus!_

                      L Offline
                      L Offline
                      led mike
                      wrote on last edited by
                      #10

                      Tara14 wrote:

                      Just curious: how does our operating system (win XP) automatically connect to the net and download updates? What protocal does it use?

                      http://msdn2.microsoft.com/en-us/library/ms997639.aspx[^]

                      Tara14 wrote:

                      No, they are not. The program will be deployed on the users personal computer and the database that will be manually modified/updated by the company will be hosted on its webserver.

                      Then you have no way of knowing if FTP will be blocked by any firewalls. HTTP might be a better choice and in some cases you could even run into an HTTPS only implementation.

                      led mike

                      T 1 Reply Last reply
                      0
                      • L led mike

                        Ouch, guess I picked a bad day to stop smoking crack. Thought I was back in the days when they were all separate servers :->

                        led mike

                        T Offline
                        T Offline
                        Tara14
                        wrote on last edited by
                        #11

                        :)

                        _


                        Fortitudine Vincimus!_

                        1 Reply Last reply
                        0
                        • L led mike

                          Tara14 wrote:

                          Just curious: how does our operating system (win XP) automatically connect to the net and download updates? What protocal does it use?

                          http://msdn2.microsoft.com/en-us/library/ms997639.aspx[^]

                          Tara14 wrote:

                          No, they are not. The program will be deployed on the users personal computer and the database that will be manually modified/updated by the company will be hosted on its webserver.

                          Then you have no way of knowing if FTP will be blocked by any firewalls. HTTP might be a better choice and in some cases you could even run into an HTTPS only implementation.

                          led mike

                          T Offline
                          T Offline
                          Tara14
                          wrote on last edited by
                          #12

                          Thanks.

                          _


                          Fortitudine Vincimus!_

                          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