Databases
The second step in creating an executable Windows program with AppWizard is to choose
the level of database support, as shown in Figure 1.4.
The second step to building a typical application with AppWizard is to set the database
options you will use.
There are four choices for database support:
l If you aren't writing a database application, choose None.
l If you want to have access to a database but don't want to derive your view from
CFormView or have a Record menu, choose Header Files Only.
l If you want to derive your view from CFormView and have a Record menu but
don't need to serialize a document, choose Database View Without File Support.
You can update database records with CRecordset, an MFC class discussed in more
detail in Chapter 22, "Database Access."
l If you want to support databases as in the previous option but also need to save a
document on disk (perhaps some user options), choose Database View With File
Support.
Chapter 22 clarifies these choices and demonstrates database programming with MFC. If
you choose to have a database view, you must specify a data source now. Click the Data
Source button to set this up.
As you select different radio buttons, the picture on the left changes to show you the
results of your choice. Click Next to move to the next step.
No comments:
Post a Comment