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. Adding Second Recordset in a MFC

Adding Second Recordset in a MFC

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialdatabase
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.
  • A Offline
    A Offline
    ahjiefreak
    wrote on last edited by
    #1

    Hey... I have an MFC application where I have added the first recordset for the application.Now I face problem in adding second recordset for the MFC which means to create new class for retrieving the variables from other database table.I have tried to follow the MSDN links and tutorial on this but as I follow the steps,I faced problem in creating new class.For example I tried to create new class CSubjectSet but it return the error which states file SubjectSet.cpp and CSubjectSet.h does not exist. Please help if you encountered this problem before or known the cause of this problem. Thanks, Lee

    I 1 Reply Last reply
    0
    • A ahjiefreak

      Hey... I have an MFC application where I have added the first recordset for the application.Now I face problem in adding second recordset for the MFC which means to create new class for retrieving the variables from other database table.I have tried to follow the MSDN links and tutorial on this but as I follow the steps,I faced problem in creating new class.For example I tried to create new class CSubjectSet but it return the error which states file SubjectSet.cpp and CSubjectSet.h does not exist. Please help if you encountered this problem before or known the cause of this problem. Thanks, Lee

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      do not use CRecordSet which is the worst in the world. u need to know how to use database driver (or MFC classes) to read/write data from/to database. In my opnion, the best are Cdc... (a set of classes, i.e. CdbDatabase, CdbRecordset etc). please note: second char is lower case: Cdb..., not CDb... the head file and lib, dll files are available in VC 5.0 but i can not find them in VC 6.0. according to Microsoft Docs, database issues of VB is based on these classes. long way to go to really understand these classes, but you have to go if u really want to do some real things. includeh10

      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