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. How to add CRecordset derived class in VC++ 2008

How to add CRecordset derived class in VC++ 2008

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelptutorialannouncement
2 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.
  • E Offline
    E Offline
    eyalle
    wrote on last edited by
    #1

    Hello all, I recently moved from VS6.0 to VS2008. I am trying to find a way to update an existing CRecordset derived class, from the DB table new structure (I'm using VS2008). Since I couldn't find how to do this, I also tried adding a new CRecordset derived class, using the MFC class wizard. Surprisingly, I couldn't find the CRecordset class in the class list to pick it from. I've tried to find a solution for this over the web, but couldn't find any useful suggestion. Please help. Thanks in advance. Eyal.

    D 1 Reply Last reply
    0
    • E eyalle

      Hello all, I recently moved from VS6.0 to VS2008. I am trying to find a way to update an existing CRecordset derived class, from the DB table new structure (I'm using VS2008). Since I couldn't find how to do this, I also tried adding a new CRecordset derived class, using the MFC class wizard. Surprisingly, I couldn't find the CRecordset class in the class list to pick it from. I've tried to find a solution for this over the web, but couldn't find any useful suggestion. Please help. Thanks in advance. Eyal.

      D Offline
      D Offline
      Dudi Avrahamov
      wrote on last edited by
      #2

      For adding a CRecordset derived in VS2008 you should do as follows. 1. In the Solution Explorer or Class View, right mouse click on the root node and choose Add --> Class. 2. From the Add Class dialog choose "MFC ODBC Consumer" and press Add. 3. Press the "Data Source" button to choose a data source and the required table (just follow the wizard). 4. Press "Finish". 5. Two files will be created CPP and H files. Enjoy, Dudi.

      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