Thread: odbc database question

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    416

    odbc database question

    Hi i've used a MS Access database file for an odbc database program, which's created by VC++2005. but now i need to add some additional data columns to the database file. how could i create variables to reflect these new columns in my VC++ project? thanx for any help.
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amateur English)

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Are you using MFC, straight Win API, or something else?

  3. #3
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    416
    i'm using MFC.
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amateur English)

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Its been awhile since I did this, but take a look at your CRecordset derived class. I think all you have to do is add the variables like the existing ones and add a RFX_ statement for each variable in DoFieldExchange. Be sure to also update the m_nFields number in the constructor.
    Last edited by DaveH; 02-22-2008 at 12:13 PM.

  5. #5
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    416
    thanx a bunch Dave, that worked!
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amateur English)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  2. Probably a simple question
    By Chles in forum C++ Programming
    Replies: 2
    Last Post: 08-05-2007, 02:41 AM
  3. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  4. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  5. Replies: 1
    Last Post: 05-31-2002, 10:46 AM