|
[求助]请问要把Win32asm教程中列表视图控件的例子,报告方式显示时带上网格,需要怎样做呢?
ok,thank you very much |
|
[求助]求Word2003中的“段落”和“拼写和语法”两个图标
Office系列图标在文件中并不是以图标资源形式存在,而是以位图形式存在,现在我不知道是在什么文件中存放的,不知有谁研究过没有? |
|
[分享]根据外星人C程序改编出的计算圆周率800位的汇编程序
又优化了一下,ChopDown 的这段代码和我最后整理出来的思路基本一致,不过我原来没有看过这段,其实前面的 f=a/5完全可以改为f=2000,而在汇编语言中则可以直接定义成有初始值的数组。优化结果如下: .586 .model flat, stdcall option casemap :none include MACRO.ASM includelib msvcrt.lib printf proto C :VARARG .data f dd 2801 dup(2000) ;因为有这种定义,省略了for(;b-c;)f[b++]=a/5; .code ;a--->ebx,b、g--->ecx,d--->edi,e--->ebp,e--->esi start: xor esi,esi ;e=0 mov ebp,2800 ;c=2800 mov ebx,10000 @1: xor edi,edi ;d=0 mov ecx,ebp ;b=c @@: imul edi,ecx ;d=d*b mov eax,[ecx*4+f] ;d+=f*a mul ebx add eax,edi lea edi,[ecx*2-1] div edi mov [ecx*4+f],edx ;f=d%(2b-1) mov edi,eax ;d=d/(2b-1) loop @b div ebx add eax,esi ;e+d/a mov esi,edx ;e=d%a invoke printf,CTXT("%.4d"),eax sub ebp,14 ;c-=14 jnz @1 ret end start |
|
[求助]汇编语言如何声明外部变量
32位下,public也是必须的。 |
|
[求助]调用别人的dll会弹出一个对话框,如何阻止其弹出呢?
好象属于破解的范畴,nop掉 |
|
[求助]汇编语言如何声明外部变量
oh,my god! thank you very much! |
|
[求助]请问PNG文件定义到资源文件中的问题
晕啦,想要使用PNG的资源(JPG的也一样),需要这样做: invoke FindResource,hInstance,9107,RT_RCDATA mov hResInfo,eax invoke LoadResource,hInstance,eax invoke LockResource,eax mov pResourceData,eax invoke SizeofResource,hInstance,hResInfo mov imageSize,eax invoke GlobalAlloc,GMEM_FIXED,imageSize mov pBuffer,eax invoke MemCopy,pResourceData,pBuffer,imageSize invoke CreateStreamOnHGlobal,pBuffer,FALSE,addr pStream invoke GdipCreateBitmapFromStream,pStream,addr image invoke GdipDrawImageRectI,gp,image,0,0,380,67 ;显示图片 invoke GdipDisposeImage,image invoke GlobalFree,pBuffer 不知有没有更简单的方法。 |
|
[求助]请问PNG文件定义到资源文件中的问题
这个问题可不可以用GDI+来解决?在GDI+中使用PNG文件只要3个API: invoke MultiByteToWideChar,CP_OEMCP,MB_PRECOMPOSED,CTXT("start_top.png"),-1,addr FileName_UNICODE,255 ;ASCII转成UNICODE invoke GdipLoadImageFromFile,addr FileName_UNICODE,addr image ;调用图片文件 invoke GdipDrawImageRectI,gp,image,0,0,380,67 ;显示图片 而如果使用BMP的资源只要两个API: invoke GdipCreateBitmapFromResource,hInstance,9107,addr image ;从资源中调出位图 invoke GdipDrawImageRectI,gp,image,0,0,380,67 ;显示图片 可惜GdipCreateBitmapFromResource这个函数好象只支持BMP格式的资源。在资源中使用PNG文件,是不是也只要几个API就行呢?目前我还没有成功,FindResource/LoadResource/LockResource调入的RCDATA资源需要进行解码,不知道如何进行解码,有没有朋友帮忙看一下这个问题? |
|
[求助]请问PNG文件定义到资源文件中的问题
谢谢 小虾 大侠客! |
|
[求助]怎样建立一个系统模态的对话框
以前还真没有注意过这个问题。但现在我不知道哪儿有这样的对话框,ssm是什么啊? |
|
[求助]怎样建立一个系统模态的对话框
其中应用程序模式对话框和系统模式对话框之间的差别是style参数不同,要想创建一个系统模式对话框该参数必须“或”上 DS_SYSMODAL标志位。 |
|
[求助]请教浮点立即数的写法
谢谢小虾!这么说只能通过变量,而没有一种写法就象mov eax,23一样啦 |
|
[求助]如何处理图片黑边?
奋斗数日,终于解决啦,用了逐点绘画的方法。也许用BitBlt也能实现,但真不知合适的ROP码是什么,可能是微软未公开。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值