Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use recordsets without using the appwizard at the creation of a proje

Status
Not open for further replies.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top