How to use GDI+?simle introduction about configure
来源:互联网 发布:我的兄弟是逗比网络剧 编辑:程序博客网 时间:2024/05/17 09:36
GDI+是什么?
GDI+ 是面向 C/C++ 程序员的基于类的应用程序编程接口 (API)。它使应用程序可以
将图形和格式化文本同时用于视频显示和打印机。GDI+ 代表应用程序与设备驱动程序
进行交互。GDI+ 还支持 64 位 Windows 操作系统。
建立一个MFC工程,将以下代码放到stdafx.h中
#pragma comment(lib, "gdiplus.lib") //注意,要保证vc路径的lib中,能够找到这个文件
#define ULONG_PTR ULONG
#include <gdiplus.h>
using namespace Gdiplus;
然后增加app类中的变量:
GdiplusStartupInput m_gdiplusStartupInput;
ULONG_PTR m_pGdiToken;
在InitInstance函数中,增加代码
GdiplusStartup(&m_pGdiToken,&m_gdiplusStartupInput,NULL);
增加ExitInstance函数中,增加以下代码
GdiplusShutdown(m_pGdiToken);
此时编译应该能够通过,执行前,检查一下GDIPLUS.DLL是否在系统目录或当前目录.
- How to use GDI+?simle introduction about configure
- How to configure environment to use JavaMail?
- How to configure and use CAN bus
- How to use gdi+ in vc6.0
- About how to use Async Task interesting
- How to use sendmail to configure SMTP server
- how to configure libvirt to use virtio with KVM guests
- how to configure and use activemq in camel
- How to Configure, Install and Use libnefilter_queue on Linux
- How to Configure, Install and Use libnefilter_queue on Linux
- how-to-configure-and-use-spark-history-server
- c# how to make app use a specified configure file
- Xamarin.iOS + MvvmCross - Notes about how to use Mvx TableViewSource
- About Introduction to Algorithms
- How To Configure Hadoop
- How to configure XDebug
- 1201833 - How to configure Crystal Reports to use an SAPLogon.ini file
- Introduction to COM - What It Is and How to Use It.(ZT)
- html 包含另外一个html 的几种方法(作者: 来源:天极网 加入日期:2006-3-16 10:39:00)
- 存储用户相关信息的session
- 架构师基本要素
- 几招对付银行里态度恶劣的工作人员
- UCOS_II与ecos之对比
- How to use GDI+?simle introduction about configure
- Java学习从入门到精通[希望自己要努力]
- ASP.NET程序中常用的三十三种代码
- Pointcut源码学习
- Oracle数据库PL/SQL过程调试的输出方法
- 什么是WSDL
- Oracle 条件语句/循环语句
- ftp 搜索破解
- 好好学习,充分利用网络资源csdn sf