I have a MFC dialog based project,Now I want to add database with that project.
I have no idea how to do this.
can anybody provide the useful link?
Actually when I create a new dialog based MFC project, the database support is hide.
So I want to ask that
MFC dialog base project support database or not
When I create new Dialog based MFC project
Database support is hide.
You should better directly use
CDatabaseandCRecordsetclasses to open to the database, and read/write to the tables, or call SQL using differentCRecordsetobjects.You need only one
CDatabaseobject, and attach it to differentCRecordsetinstances (one at a time). You may directly useCRecordsetand useGetFieldValuemethod in a loop (controlled byIsEOFmethod). Or you may inherit fromCRecordsetand implementDoFieldExchange. See here.