AppWizard has created this opencv example application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes, but is also a starting point for writing your application.