I wanted to write a program that connects to a live database containing links to Web pages and displays any selected page without launching a browser. The Recordset dialog box is connected to a live ODBC data source. Clicking on the Browse button will pass the ArticleURL information back to the ArticleBrowse application. Running the MFC AppWizard will determine the application type and generate a set of associated class and header files for us. Structure declarations and prototypes for functions are contained within header files.
Classes are user defined data types.
The application can now render content using the browser engine found in IE 4.0. Compiling and running the code at this point will create a program that displays a Web page defined in the HtmlView class. We add database functionality by inserting the ADO Data Bound Dialog component. ADO provides data access and manipulation based on a common programming model. No coding is required to connect the data fields to the data or to wire the buttons to navigate the data source.