Guest_imported
New member
- Jan 1, 1970
- 0
Can anyone help me to use recordsets without using the appwizard at the creation of my project?
the purpose is to input on the database values from a form without using a database project, so in my MFC project I do the following and then I faced problems :
In the class which I use the database I add the member variable
CDatabase m-Mydatabase;
on an "OnButton" function of this class I do :
m_Mydatabase.Open(NULL,FALSE,FALSE,stringconnect)
I have many dialog boxes, each dialog has a form from which I get data and put them on the database and vice versa.
I create fo each dialog box a RecordSet, and I include the .h file of the record set in the dialog class in which I'm going to use it.
So now how to use this recordset and put the values from controls to database ?
thank's in advance.
the purpose is to input on the database values from a form without using a database project, so in my MFC project I do the following and then I faced problems :
In the class which I use the database I add the member variable
CDatabase m-Mydatabase;
on an "OnButton" function of this class I do :
m_Mydatabase.Open(NULL,FALSE,FALSE,stringconnect)
I have many dialog boxes, each dialog has a form from which I get data and put them on the database and vice versa.
I create fo each dialog box a RecordSet, and I include the .h file of the record set in the dialog class in which I'm going to use it.
So now how to use this recordset and put the values from controls to database ?
thank's in advance.