Windows Mobile6.0下使用GDI+
来源:互联网 发布:知乎 精华 护肤 编辑:程序博客网 时间:2024/06/08 18:46
Windows Mobile6.0下使用GDI+
一、Mobile6.0的ROM中已含有gdiplus.dll,但VC2005开发环境中没有GDI+的头文件和lib文件
从这里下载LibGdiplus_Bin.zip - 474K
二、解压后把SDKInclude文件夹中的所有头文件拷贝到Program Files/Windows Mobile 6 SDK/PocketPC/Include/Armv4i中, 把WINCE6文件夹中的LibGDIPlus.lib文件拷贝到Program Files/Windows Mobile 6 SDK/PocketPC/Lib/Armv4i中。
三、在stdafx.h中加入
#include <gdiplus.h>
#pragma comment (lib, "LibGDIPlus.lib")
using namespace Gdiplus;
四、在程序的App类里头文件中成员变量: ULONG_PTR m_gdiplusToken
五、在App的InitInstance函数的SHInitExtraControls后添加以下语句
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
六、在App的ExitInstance函数中加入
Gdiplus::GdiplusShutdown(m_gdiplusToken);
这样就可以使用GDI+了.但注意有很多函数不能用,例如:
- No support to load image file directly from path
Use IStream interface to load file data, use the stream interface version to create bitmap. Same goes for resource. - Windows Mobile doesn't support the following features:
GDI Path (GDI path functions are not exported)
Enhanced Meta file
- Windows Mobile6.0下使用GDI+
- Windows Mobile6.0下使用GDI+
- windows mobile6 smartphone下使用directdraw的一些问题
- Windows Mobile6.5下的Widget分析
- windows mobile6.0模拟器上网设置
- Delphi下使用Windows GDI绘图
- Windows Mobile5.0与Windows Mobile6.0对比评测
- VC6.0下使用GDI+
- windows mobile6.0 文件操作找不到文件解决办法
- windows下GDI 打印
- windows 使用GDI+
- Windows CE下使用MFC进行GDI绘图基础实验
- 使用GDI在windows下绘图(二)——GDI绘图方法
- Windows GDI使用【学习笔记】
- Windows GDI:CGdiObject使用总结
- Windows GDI:CDC使用总结
- 使用Windows GDI绘制图形
- 2011-5 windows mobile6.5 手势控制
- J2ME3.0/2.2 混合开发环境配置问题记录
- 快速禁用LINUX的IPv6提高网速
- sql-function函数的使用
- Debugging techniques for PHP programmers
- 输入N 输出螺旋矩阵 11月12日
- Windows Mobile6.0下使用GDI+
- IP电话基本原理
- 不使用 if switch 等 求出两个变量中的较大或(较小)的一个 11月13日
- Windows批处理
- 爱国家 爱父母 爱老师 爱自己
- 装修的200条小常识,有心得的来讨论下了
- JavaScript语法集锦(一)
- php入门到精通全系列视频(2008最新)
- sprint的长度--三个星期