Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, I will show you to how you can interface to a database using Visual C++ and the MFC and access the data from it. This is by no means a comprehensive discussion of the possibilities, because a full discussion of database application development using Visual C++ would occupy a very substantial book in its own right. In this chapter, however, you will look at how you can read from a database, and in the next chapter you will explore the basics of how you can update a database. Of course, you can access data sources in CLR applications, and you'll look at this in Chapter 23.
In this chapter, you will learn about: