您的位置:程序门 -> c/c++ -> c++ 语言



一个图标问题?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


一个图标问题?[已结贴,结贴人:zsz0147]
发表于:2007-03-31 16:34:07 楼主
drawlconex这个函数总是错误为什么呀,错误是没有定义   这是为什么呀?
error:   e:\zhang\shuai\shuai.cpp(39)   :   error   c2065:   'drawlconex '   :   undeclared   identifier  


#include   "stdafx.h "  
#include <shellapi.h>  
#include <winuser.h>  
//#include <usser32.lib>  
//using   namespace   std;  
int   apientry   winmain(hinstance   hinstance,  
hinstance   hprevinstance,  
lpstr   lpcmdline,  
int   ncmdshow)  
{  
//   todo:   place   code   here.  

hicon   hicon;  
hdc   hdc;  
hwnd   hwnd;  
hinstance   hinst;  
hdc=getdc(hwnd);  
hicon=extracticon(hinst, "c:\\windows\\system\\shell32.dll ",1);  
drawicon(hdc,0,0,hicon);  
drawlconex(hdc,0,0,hicon,null,di_normal);  
//   drawlconex();  
return   0;  
}
发表于:2007-03-31 16:38:201楼 得分:50
winuser.h

public   declare   function   drawiconex   lib   "user32 "   alias   "drawiconex "   (byval   hdc   as   long,   byval   xleft   as   long,   byval   ytop   as   long,   byval   hicon   as   long,   byval   cxwidth   as   long,   byval   cywidth   as   long,   byval   istepifanicur   as   long,   byval   hbrflickerfreedraw   as   long,   byval   diflags   as   long)   as   long

l-> i
发表于:2007-03-31 16:52:552楼 得分:0
不明白你写的是什么呀~!

请用汉语好吗?
发表于:2007-03-31 16:58:533楼 得分:0
函数是drawiconex();
发表于:2007-03-31 17:06:484楼 得分:0
哦,明白了
发表于:2007-03-31 17:38:005楼 得分:0
lz可以试一试:
在工程的project-> settings-> link-> object/   library       modules输入框中看看有没有
user32.dll;
发表于:2007-03-31 17:39:406楼 得分:0
i写成l..?
发表于:2007-03-31 20:41:387楼 得分:0
icon   =/=   lcon
印刷错误还是楼主眼花呢^_^
发表于:2007-03-31 20:45:418楼 得分:0
没有include对应的头文件吧,还有就是看看相应的lib有没有在编译选项中有。
呵呵,ls的大家都说很好很全了
发表于:2007-03-31 20:53:449楼 得分:0
drawlconex
==>
drawiconex
发表于:2007-04-02 19:09:1610楼 得分:0
upjf


快速检索

最新资讯
热门点击