3 solutions

Solution 2

In order to use CBitmap, you must specify that the application is MFC based when creating a project. If you have code that you already have that you want to use within an MFC application, you can build an MFC application shell then just pull your code in. Shouldn't be terribly hard to do so. If you don't want to use MFC, you can interface directly to the GDI API as cpallini stated.