Solved

databases in MFC

Posted on 1998-07-21
1
259 Views
Last Modified: 2013-11-25
What are the sequence of actions to connect to an access database through MFC?
0
Comment
Question by:andrewS
1 Comment
 
LVL 8

Accepted Solution

by:
trestan earned 200 total points
Comment Utility
There are several ways to do it, either ODBC or DAO. I list the online help topics for you. There are also example codes associated with the instructions. You can get an easy start with them.
ODBC:
Visual C++ -> Microsoft Foundation Class Reference -> MFC tchnical Notes -> TN068:...
DAO:
Visual C++ -> Visual C++ Programmer's Guide -> Adding Program Functionality -> Details -> Database Topics (DAO) -> DAO Workspace...
General:
Visual C++ -> Visual C++ Programmer's Guide -> Adding Program Functionality -> MFC Topics (General) -> Building on the Framework -> Sequence of Operations for Creating Database Applications.
Which to choose:
"If you’re using mostly desktop data, we encourage you to consider the MFC
DAO database classes, because you’ll find them to be efficient and powerful.
If you primarily use ODBC server-based data, your project may function more
efficiently with the ODBC-based classes.
Other considerations include the kind of network you have, the scalability
requirements, and whether speed is more important than anything else. The
best thing to do is to prototype applications using the set of database
classes you think will work best. Do some benchmarking to determine your
best performance options.The decision is really up to you."

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Doc'in system (example?) BA 7 78
lucky13 challenge 11 111
Messagebox for a Web Site Application 4 59
ShiftLeft challenge 21 65
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now