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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to include database support in MFC app

Status
Not open for further replies.

kunai

Programmer
Jun 4, 2004
52
0
0
CA
Hi, I need some guidance here please.

I wrote a dialog-based application using MFC (VC++ 6.0).
I'm trying to add database support but i have no idea how.

I keep reading about using the CDatabase, CRecordset, etc. but where do i get those files? I can't seem to find anything helpful on the internet.

Also, i'm trying not to use ODBC. I've read about CADODatabase, seems to be my best bet; but yet again, where do i get that?

Am i supposed to implement it myself? An example would be really nice too.

Any advice would be greatly appreciated.
Thanks!
 
What's wrong with ODBC? Just curious - I've used that with MFC apps with great success.
 
I will need to demo my application on a pc where i have no administrator access, i.e. cannot add odbc links.
 
had to include afxdb.h
That's what i was missing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top