|
[求助]如何在Win32程序里面加图标资源
我知道楼上的直接改了代码,但我不能每次用都每次去改代码吧!我的意思是程序自动生成就可以用的,但我为什么就没显示出来。 |
|
[求助]如何在Win32程序里面加图标资源
初始化资源的时候已经调用了LoadIcon和SendDlgItemMessage,可还是不行。 .386 .model flat,stdcall option casemap:none include windows.inc include user32.inc includelib user32.lib include kernel32.inc includelib kernel32.lib ICON_MAIN equ 1001 DLG_MAIN equ 1000 IDC_EXIT equ 1002 .data? hInstance dd ? .const .code _ProcDlgMain proc uses ebx esi edi hWnd,wMsg,wParam,lParam mov eax,wMsg .if eax == WM_CLOSE invoke EndDialog,hWnd,NULL .elseif eax == WM_INITDIALOG invoke LoadIcon,hInstance,ICON_MAIN invoke SendMessage,hWnd,WM_SETICON,ICON_BIG,eax .elseif eax == WM_COMMAND mov eax,wParam .if ax == IDC_EXIT invoke EndDialog,hWnd,NULL .endif .else mov eax,FALSE ret .endif mov eax,TRUE ret _ProcDlgMain endp start: invoke GetModuleHandle,NULL mov hInstance,eax invoke DialogBoxParam,hInstance,DLG_MAIN,NULL,offset _ProcDlgMain,NULL invoke ExitProcess,NULL end start dlgDlg.rc: #define DLG_MAIN 1000 #define IDC_EXIT 1002 #define ICON_MAIN 1001 DLG_MAIN DIALOGEX 6,6,129,70 CAPTION "消息框" FONT 9,"宋体",400,0,134 STYLE 0x10CF0000 EXSTYLE 0x00000000 BEGIN CONTROL "演示对话框",-1,"Static",0x50000000,58,22,56,10,0x00000000 CONTROL "OK",IDC_EXIT,"Button",0x50010000,62,52,52,14,0x00000000 CONTROL "",-1,"Static",0x50000010,10,48,102,1,0x00000000 CONTROL "#1001",ICON_MAIN,"Static",0x50000203,6,6,42,38,0x00000000 END questionRes.rc: #define ICON_MAIN 1001 ICON_MAIN ICON DISCARDABLE "Main.ico" 我想是不是因为我那句定义图标的话写错了啊? CONTROL "#1001",ICON_MAIN,"Static",0x50000203,6,6,42,38,0x00000000 教程里生成的语句是: ICON ICO_MAIN, -1, 10, 11, 18, 21 就这句不一样,所以我想是不是我在工具栏选择的控件不对? 下面这个是教程里面的rc文件: //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #include <resource.h> //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #define ICO_MAIN 0x1000 //图标 #define DLG_MAIN 1 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ICO_MAIN ICON "Main.ico" //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DLG_MAIN DIALOG 50, 50, 113, 64 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "对话框模板" FONT 9, "宋体" { ICON ICO_MAIN, -1, 10, 11, 18, 21 CTEXT "简单的对话框例子\n用Win32ASM编写", -1, 36, 14, 70, 19 DEFPUSHBUTTON "退出(&X)", IDOK, 58, 46, 50, 14 CONTROL "", -1, "Static", SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE, 6, 39, 103, 1 } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 就这个小图标本人弄了两天了。实在没办法了。请高手帮忙吧。直接把资源当成附件给大家看看吧。我的是用RadASM编译的。 |
|
[求助]汇编中 ptr 是什么的缩写?
应该是pointer,指针。 |
|
[原创]北京瑞星公司招聘信息
狂晕楼上的楼上的楼上。。。 不管怎样,我一定会去那里报个到的。 虽然我现在才大三,还有一年半毕业,但我毕业后肯定会来这里的,虽然人家可能不会要我这种二类本科还是师范口的,但我会努力的。大四实习我就会去北京,去那里实习,就算不给我钱让我天天扫地倒水只要让我留在那里学习我想学习的东西就行。努力中。。。。 |
|
|
|
[求助]如何使用RadASM中的资源编辑器来编写资源?
看到你也在学习Win32汇编,同样的问题是我与你出现在同一个问题.就是关于资源的编写.那个好一个对话框程序你最终编写成功了.但我还没有弄明白. 我编写的ASM代码全部通过.一点错误都没有.但生成EXE文件后双击确没有反应.为此.我还把你所有的ASM代码复制过来,用我的RC资源文件合成EXE.而结果还是不行.所以我肯定是在Rc文件上出现了问题.不知道你可否传授一些经验.我现在找不到解决的办法.文件ASM代码用你的RC文件用我的.里面的名字全部一样都不可以.不知道是什么原因.帮忙!!!!!!!!!!!!!QQ:307727654 Email:33445621@163.com |
|
[注意]《加密与解密(第三版)》勘误(2009.9.9更新)
P11 L8 D1 反馈者:未秋叶已落 (由于看雪不能注册五个汉字的ID,所以我的ID少了一个字) 原文:和这个程序执行不无关的东西。。。 更正:和这个程序执行无关的东西 (不知道是不是因为我没看懂的原因,如果是,请删掉本贴) |
|
[华章公司]《Windows编程循序渐进》宣传活动,暨第一届软件设计大赛(所有奖项已揭晓)
完了。我再发一个227了。。。但愿还管用吧。。到200是为了防止有人刷。。。但我没刷。。加我一个吧。。哈哈。。。 就33了 |
|
[讨论]看雪网站的激励机制设想,欢迎讨论和补充
强烈反对!!! 看雪老大,还记得当初为什么要建这个站吗?就是为了资源共享、技术共享。。。如果现在把资源把技术做了限制,是否有偏离初衷!即使如您所说,菜鸟东西不做限制,只把原创作品和值得限制的技术、资源限制起来,这样做的目的是什么呢?激励?众所周知,看雪里藏着许多大侠,但80%甚至更多是菜鸟,这些菜鸟就是冲着要学习技术,提高能力才来看雪的。限制起来后只会对个别的大侠进行激励,却大大伤害了想提高的菜鸟!这样的看雪还是原来的那个看雪了吗? 菜鸟并不是都菜的,但ID值低,有限制,菜鸟想看的东西看不到,真正的技术、资源没有得到广泛的学习和推广,这样的结果是看雪想得到的吗?不要忘了:束业有专攻!个别菜鸟仅仅想在某一方面有所发展,相信这样的菜鸟经过长期的学习一定会给我们带来意想不到的惊喜!但是,在这个长期的过程中,他也是要学习看雪前辈们的技术和经验的,试想一下,有这样一个菜鸟,经过漫长的寻找终于在看雪找到自己想要的学习资料,下载回来,估计他会兴奋的熬上几个晚上把它看完,这才是看雪存在的价值!!!反过来,经过漫长的寻找终于在看雪找到自己想要的学习资料,打开之后,有限制,看不成,这是一个怎样的打击呢,是的,没错,他可以花RMB买,但这是不是更远离看雪当初建站的目的呢!做限制,激励了个别打击了群众。如果看雪真的以“保护知识产权”为由来“激励”个别的话,绝对会阻碍知识的广泛传播,那看雪就不再是一个资源共享、技术共享的乐园,干脆收费算了!做了限制,就会像世界各国为保护自己世界前沿技术而阻碍世界的发展一样!!!是否显得自私了点呢? 刚刚看到第几楼的说:他说看到一个04还是03年的ID却发贴量才10个左右,看雪论坛在这一点做的太失败。 失败吗?一点也不失败!每个人都有每个人的事情,并不是每一个人都在天天上看雪,因为我们还要挣钱吃饭。有些沉默寡言的人通常都是安静的看所有人的技术,然后再一鸣惊人。我在看雪看到一个ID是04年的,发贴量还是个位数,但他今年发了一个贴后,不超过两个小时群主就把这个帖子设成精华,这代表什么?有些人就是不喜欢说话你能怪他吗?什么是于无声处听惊雷?让这些不喜欢说话的人默默的去学习,然后某一时刻给我们带来一些意想不到的惊喜有什么不好? 总之,我不反对看雪搞什么激励,但千万不要搞什么限制!!!这样带来的弊端长期发展下去是无法想象的!!!激励,完全可以拉赞助商,或者为看雪再加些AD我相信真正想学习技术的人也不会在意的。做限制绝对不等于激励!!! |
|
[五年一剑]看雪论坛鼎力打造---《加密与解密(第三版)》正式出版[附:网购地址]
五年啊。。。五年!!! |
|
加密与解密第三版的发行量大约是多少呢?
兄弟。。你严重浪费啊。。。。 |
|
[注意]看雪论坛鼎力打造---2008年力作《加密与解密》(第三版)[2008年6月上旬上市]
坚决同意514楼的。。。感同身受啊。。 |
|
[注意]看雪论坛鼎力打造---2008年力作《加密与解密》(第三版)[2008年6月上旬上市]
体谅体谅我们吧。半夜了我都来这里先看一眼再睡觉。容易吗我。 |
|
[注意]看雪论坛鼎力打造---2008年力作《加密与解密》(第三版)[2008年6月上旬上市]
坚持同意楼上的。原来还存在这个问题,还真没注意到。 |
|
[注意]看雪论坛鼎力打造---2008年力作《加密与解密》(第三版)[2008年6月上旬上市]
花开是你,花落亦是你。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值