gdiplus

In the windows form,why when I type the header file #include <gdiplus.lib>, I always get bunch of errors? I have added the gdiplus.lib to the program and the include directory also.
You don't #include lib files... you #include header files.

lib files need to be linked to.

If using MSVS you can do this:
 
#pragma comment(lib, "gdiplus.lib") 


For other compilers/IDEs you'll have to look at your project options / linker settings.
However, I didn't find gdiplus.h
I've never used GDI+ myself. I can only assume that's either not the right header name, or you don't have GDI+ installed.
http://stackoverflow.com/questions/7305614/include-gdiplus-h-causes-error

These are the standard includes for using GDI+:
1
2
3
4
5
#include <windows.h>
#include <objidl.h>
#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment (lib,"Gdiplus.lib") 
Topic archived. No new replies allowed.