In DaoEnrol Step 1, AppWizard embedded the CSectionSet
object in the document. In this step, you’ll do the same for the second recordset object — an object of the CCourseSet
class that you created earlier with ClassWizard.
To embed the recordset in the document
CCourseSet
object by adding the following line to the public Attributes section, just beneath the CSectionSet
declaration:CCourseSet m_courseSet;
#include "CourseSe.h"
The document’s m_courseSet
member is referred to in the implementation of OnInitialUpdate
that you’ll complete later.