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