odbc database question

This is a discussion on odbc database question within the Windows Programming forums, part of the Platform Specific Boards category; Hi i've used a MS Access database file for an odbc database program, which's created by VC++2005. but now i ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365

    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.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

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

  3. #3
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365
    i'm using MFC.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature 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 11:13 AM.

  5. #5
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365
    thanx a bunch Dave, that worked!
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21