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. dbf file

dbf file

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
6 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.
  • K Offline
    K Offline
    K Shaffer
    wrote on last edited by
    #1

    I need my program to view data from a .dbf file but I don't want to have to use a DBMS to do so. How would I go about doing this? Parse the file myself? Or is their a better way? Kevin Shaffer kshaff03@msn.com

    D 1 Reply Last reply
    0
    • K K Shaffer

      I need my program to view data from a .dbf file but I don't want to have to use a DBMS to do so. How would I go about doing this? Parse the file myself? Or is their a better way? Kevin Shaffer kshaff03@msn.com

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

      If you are not interested in using a DBMS, then your only recourse is to process the file yourself, not a trivial task by any means. See here, here and here for file format information. Why not use ODBC? Create a DSN using the ODBC applet in Control Panel. Then you can use the CRecordset class to access the data. You can also create a DSN-less connection.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      K 1 Reply Last reply
      0
      • D David Crow

        If you are not interested in using a DBMS, then your only recourse is to process the file yourself, not a trivial task by any means. See here, here and here for file format information. Why not use ODBC? Create a DSN using the ODBC applet in Control Panel. Then you can use the CRecordset class to access the data. You can also create a DSN-less connection.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        K Offline
        K Offline
        K Shaffer
        wrote on last edited by
        #3

        This is my first experience with a database of any sort... My program only needs to update data from a .dbf from a cd once a month, so it doesn't have to be efficient, and no writing is needed either. I cannot distribute any software with my hardware that is not already installed on windows, for example Microsoft Access, etc. If I use ODBC, (I know very little about it now) would my program be able to access the file without having to distribute a DBMS along with my own software? Kevin Shaffer kshaff03@msn.com

        D 1 Reply Last reply
        0
        • K K Shaffer

          This is my first experience with a database of any sort... My program only needs to update data from a .dbf from a cd once a month, so it doesn't have to be efficient, and no writing is needed either. I cannot distribute any software with my hardware that is not already installed on windows, for example Microsoft Access, etc. If I use ODBC, (I know very little about it now) would my program be able to access the file without having to distribute a DBMS along with my own software? Kevin Shaffer kshaff03@msn.com

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

          kshaff03 wrote: ...and no writing is needed either. If no writing is needed, then how are you going to update the .dbf file? kshaff03 wrote: I cannot distribute any software with my hardware that is not already installed on windows, for example Microsoft Access, etc. Most drivers come preinstalled with the OS. kshaff03 wrote: If I use ODBC, (I know very little about it now) would my program be able to access the file without having to distribute a DBMS along with my own software? Most likely, yes. Newer technologies exist (e.g., ADO, DAO), but I've not had the privilege of using them. One of these days I'll give 'em a whirl, though. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/\_core\_database\_topics\_.28.odbc.29.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc\_drivers\_overview.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/dasdkodbcoverview.asp http://support.microsoft.com/default.aspx?scid=kb;en-us;110093


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          K 1 Reply Last reply
          0
          • D David Crow

            kshaff03 wrote: ...and no writing is needed either. If no writing is needed, then how are you going to update the .dbf file? kshaff03 wrote: I cannot distribute any software with my hardware that is not already installed on windows, for example Microsoft Access, etc. Most drivers come preinstalled with the OS. kshaff03 wrote: If I use ODBC, (I know very little about it now) would my program be able to access the file without having to distribute a DBMS along with my own software? Most likely, yes. Newer technologies exist (e.g., ADO, DAO), but I've not had the privilege of using them. One of these days I'll give 'em a whirl, though. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/\_core\_database\_topics\_.28.odbc.29.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc\_drivers\_overview.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/dasdkodbcoverview.asp http://support.microsoft.com/default.aspx?scid=kb;en-us;110093


            "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

            K Offline
            K Offline
            K Shaffer
            wrote on last edited by
            #5

            DavidCrow wrote: If no writing is needed, then how are you going to update the .dbf file? Actually, I am updating a text file on the harddrive with a subscription from a cd that contains a .dbf file with the data I need. Thank you very much for all your help and advice. I was under the impression that you would have to buy Access and have it installed in order for your program to use the drivers. I guess it is time to learn some database programming! Thanks again. Kevin Shaffer kshaff03@msn.com

            D 1 Reply Last reply
            0
            • K K Shaffer

              DavidCrow wrote: If no writing is needed, then how are you going to update the .dbf file? Actually, I am updating a text file on the harddrive with a subscription from a cd that contains a .dbf file with the data I need. Thank you very much for all your help and advice. I was under the impression that you would have to buy Access and have it installed in order for your program to use the drivers. I guess it is time to learn some database programming! Thanks again. Kevin Shaffer kshaff03@msn.com

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

              kshaff03 wrote: I was under the impression that you would have to buy Access and have it installed in order for your program to use the drivers. With some databases, this might be the case, but not with Access.


              "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

              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