Thread: Outputting to a database

  1. #1
    Registered User
    Join Date
    Sep 2001
    Location
    England
    Posts
    121

    Outputting to a database

    I've been writing a program for college to calculate wages when a user inputs name, tax code, hours etc, but what I want to do is write and save their input to a database, the program doesnt need to be able to read from the database but you must be able to open the database within windows and be able to read it (preferably in a popular database program like access). I have a fairly good understanding of c++ but not stl, and I only have until january 4th to complete the project. Any suggestions or is this an impossible task?

    Thanks
    Robert602

    Edit - I also have no money to spend on new software or books, and I dont have office developer, just VC++ and office 2000 pro
    Last edited by Robert602; 12-26-2001 at 06:17 PM.

  2. #2
    That would be hard. Unless you knew how Access writes their files. When a major program like that saves a file, it is in binary. So you would have to convert the input into binary? Then you would have to learn HOW it writes it etc. NOW some programs have user readable code on their files, Acess probably does not. Just look around at the files Access uses and open them in a non-formatting text editor (notepad, MS-DOS edit my favorite)

  3. #3
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    Or you could try looking up some Access API functions on the internet or maybe some examples to work with Access using SQL. You will need to know SQL for sure. Statements like INSERT and UPDATE would definitely come in handy when you want to right to the database.

    But you do need a MS Access engine to work with and to connect to. Otherwises you have no way to make sure that your stuff is working.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  4. #4
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    Just remembered, if you don't have to use MS Access, you can use MySQL instead. It is freely available on the net, with source code, free API guides and a lot of examples on how to use. And I also think it is available for Windows. Give it a try...
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. literature database: help with planning
    By officedog in forum C++ Programming
    Replies: 1
    Last Post: 01-23-2009, 12:34 PM
  2. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  3. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  4. Developing database management software
    By jdm in forum C++ Programming
    Replies: 4
    Last Post: 06-15-2004, 04:06 PM
  5. Making a Simple Database System
    By Speedy5 in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2003, 10:17 PM