一个WIN32程序,直接包含GDI+头文件,编译不通过。解决方法很简单,加上下面这一句:
#include <comdef.h>
#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")
本文详细解释了在开发WIN32程序时,遇到编译不通过的问题如何通过添加特定的头文件和使用GDI+库来解决。包括了必要的代码片段和编译选项配置。
一个WIN32程序,直接包含GDI+头文件,编译不通过。解决方法很简单,加上下面这一句:
#include <comdef.h>
#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")

被折叠的 条评论
为什么被折叠?