- i had the include:
#include <.\gdiplus\gdiplus.h>
- and the libgdiplus.h to the linker options.
i never used GDIPLUS in C++. but i'm trying it:
hdcimage = CreateCompatibleDC(NULL);
Gdiplus::Graphics graphics(hdcimage); //Handle to the device context
//Load the image from a file
Gdiplus::Image img(filename.c_str());//error
graphics.DrawImage(&img, 0, 0, img.GetWidth(), img.GetHeight());
the 'filename' it's a c++ string.
i get 1 error:
"no matching function for call to 'Gdiplus::Image::Image(const char*)'"
can anyone tell me what i'm doing wrong?