I'm using the GDI+ API to manipulate images in a program I'm working on. I've taken code samples from the MSDN web page, and using them almost verbatim, I'm still getting compile error. The following code snippet is where I get the error from:
#include <windows.h>
#include <gdiplus.h>
using namespace Gdiplus;
image.cpp(8) : error C2065: 'graphics' : undeclared identifier
image.cpp(8) : error C2228: left of '.DrawImage' must have class/struct/union
type is ''unknown-type''
I thought 'graphics' was a part of GDI+. Is there something I'm missing here? Any help I can get to shed some light would be most appreciated.