注册 登录
编程论坛 VC++/MFC

求助:如何用GDI绘制图象?

realinfotime 发布于 2007-11-07 15:05, 4023 次点击
我想用VC++的代码绘制图象,比如通过消息响应制作时钟,哪位能提供代码实例,相关实例就可以。
万分感谢!
14 回复
#2
Arcticanimal2007-11-07 20:49
看看这个例子, 已经忘了从哪里下来的了, 向作者致谢!!
只有本站会员才能查看附件,请 登录

#3
gaoamining2007-11-11 17:17
顶顶
#4
sunstudent2007-11-11 17:49
好像不能运行的,二楼的
#5
逆流的鱼2007-11-12 21:29
#6
柒兲2007-11-12 22:34
Compiling...
StdAfx.cpp
c:\documents and settings\administrator\桌面\新建文件夹\stdafx.h(27) : fatal error C1083: Cannot open include file: 'gdiplus.h': No such file or directory
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
#7
柒兲2007-11-12 22:34
#include "gdiplus.h"
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")
#8
柒兲2007-11-12 22:34

是怎么一回\事啊?
#9
Arcticanimal2007-11-14 13:00

#pragma comment(lib, "gdiplus.lib")指定链接GDI+库, 你的VS的库文件里没有gdiplus.lib.
把下面文件拷贝到include和lib文件夹下面就好了

只有本站会员才能查看附件,请 登录

#10
bkillbelong2007-11-14 22:55
好漂亮的电子钟
#11
mtlbook2008-11-25 03:32
下来看看, 谢谢。
#12
lvyiyun2010-10-08 10:42
我的能运行,但是看不见结果,打开任务管理器在进程中看到,这是怎么回事啊
#13
仰头的猪2013-08-01 15:27
以下是引用bkillbelong在2007-11-14 22:55:35的发言:

好漂亮的电子钟

高手啊
1