Thread: How can I open and read from a database

  1. #1
    Unregistered
    Guest

    Question How can I open and read from a database

    Our problems are how we shall open and read from a database.
    Can we use fopen?
    We write in vc++.but use C.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Our problems are how we shall open
    Use fopen

    > and read from a database
    Use fread

    However, understanding what all those bytes mean is another matter....

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    opening a database

    with C good luck.. Use c++. You can use dao...
    there are many objects you can work with.... there is also ODBC..
    I have been working with DAO for a little while now and find it simple enough...

    look up CDaoDatabase, CDaoTabledef, CDaoRecordset in your help files ... I also found a cool article on a class once which had a class named Embsql.h which provide all the interfaces for using sql commands from withing c++ I believe... or it might have been c...
    zMan

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    embedded sql

    check out the site for help with this subject
    http://cplus.about.com/cs/embeddedsql/
    zMan

  5. #5
    Unregistered
    Guest

    Re: opening a database

    [QUOTE]Originally posted by zMan
    [B]with C good luck.. Use c++.

    __________________________

    thanks but the question is MFC or not. Can we do it without MFC?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Remote file open & read
    By major9 in forum C Programming
    Replies: 3
    Last Post: 04-24-2009, 04:12 AM
  2. Help porting code lseek(), open() and read()
    By mohankarthik in forum C Programming
    Replies: 8
    Last Post: 09-12-2008, 08:15 AM
  3. OPen a file and read it from the last line
    By c_geek in forum C Programming
    Replies: 14
    Last Post: 01-26-2008, 06:20 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. open and read data from files
    By ethorn10 in forum C Programming
    Replies: 5
    Last Post: 02-04-2003, 04:00 AM