|
看雪论坛.珠海金山2007逆向分析挑战赛---第一阶段通过选手名单(65位)
t-shirt是黄色还是白色? |
|
|
|
[求助]如何在对话框里显示一张bmp图片?
GDI+撒。 void Draw(HDC hdc, LPCWSTR file) { Graphics g(hdc); Bitmap bmp(file); g.DrawImage(&bmp, 0, 0); } |
|
在Win32汇编中怎么绘制函数曲线?
实际上曲线也是一系列的直线的集合。 一般情况下,矢量图形系统中利用bezier曲线来表示,然后把其转换为一系列直线,再进行渲染。 楼主可以看看Cairo,AGG等开源图形库中的矢量绘制部分的代码。 |
|
在Win32汇编中怎么绘制函数曲线?
自己申请内存,做个位图,然后直接在内存中画好了,SetDibToDevice. |
|
两个变量交换,不使用第三个变量如何实现?
异或 可能是最好的,那个push pop 还是用到了其他存储部分。 还有一个是 a += b; b = a - b; a = a - b; 只是这个可能存在溢出的可能性。 |
|
win32汇编写矢量图形绘图程序有关问题
创建一个Bitmap,然后用一个Graphics(Bitmap),然后在Graphics上画线啊,画圆啊,贝塞尔之类的。 需要修改的时候,直接把Bitmap Lockbits了,直接修改。 |
|
win32汇编写矢量图形绘图程序有关问题
矢量图形处理可是要一些复杂的运算的呀。用汇编是不是太麻烦了。 如果楼主熟悉c++的话,可以看看一个比较好的开源2d图形渲染引擎AGG。 <a href = http://www.antigrain.com/>http://www.antigrain.com</a> 效果和效率都很不错的说! 如果只是在windows上跑的话,直接用GDI+就可以了。但是AGG的可扩展性能比较好:) |
|
[原创]发个建站的小工具(带留言本的简单Web服务程序)
PS:默认端口81,默认主页是index.htm。 假设在c盘根目录下运行,运行后,从ie地址栏输入: http://192.168.48.186:81/messagetijiao.htm,把ip换成你自己的ip就可以看到留言界面拉。。 比较难看的说:)有兴趣的可以自己改好看了,但是那两个参数不能变。 可以在命令行中使用开关来换端口。 |
|
|
|
[求助]写一个能显示本机所有进程的PID,各进程所使用的端口,用什么函数来实现?
NtQUerySystemInformation 察看所有内核句柄,其中包括socket句柄。其有一个标志位。以及其所属进程的pid. 然后转换为本进程可以打开的句柄,继而可用winsock的api获取其端口信息。 具体看工具下载中偶发了个小工具,有源玛。 |
|
[求助]请问,我们日常都是用Windows的API函数,那么这些API函数又是怎么写出来的?
win32子系统-系统服务-各种硬件驱动-HAL(硬件抽象层)-底层硬件提供的接口 当然中间可能还会有各种封装和转换。 |
|
[求助]为什么我recv的数据为零
.data @wsaData WSADATA <> @stAddr sockaddr_in <> szHostName db "http://www.wolfexp.net/",0 sz3 db 156 dup(0) sz1 db "GET /forum/index.php HTTP/1.1",13,10 db "Host: http://www.wolfexp.net/",0 少了13 10 13 10 建议多去系统看下你想做的东西。看下标准中怎么写的。 现在很少有软件公司招聘说你会写木马后门什么的就会要你的。 楼主熟悉ia-32汇编是好事,但是我观察下你发的一些代码,大部分都是按照一些已有的理论,短短几十行代码invoke一些win32 api这样进步不是很大。就说你现在经常写的winsock代码,其实完全可以好好系统研究下整个winsock的框架结构,再联系现在市场上的反应和需求,如果感兴趣的话,可以试着用汇编写一些轻便强大的网络应用软件出来。这样我想不仅对你自己有帮助,对网络也会有贡献。 要做就做大点的工程。做好整体项目的架构,对项目整体经验的积累才是最重要的。不要一出现问题就发帖子出来问,别人如果恰巧熟悉你所问的说不定会热心告诉你,不了解你工程的,谁也不会没事去研究你发的代码。况且这种问题完全可以自己解决。 说的实话,如果不中听,楼主完全可以当作木看见,在下道个歉先。 |
|
[原创]计算素数
GetTickCount表面是能精确到1ms,实际情况上,大部分是15ms。 程序执行效率的提高,首先是在算法的优化上,其次是代码结构之类的优化,最后才是机器指令的优化。 另外有两种更精确的方法: double ClockRecorder() { static LARGE_INTEGER liTmp; static double dFrequency, dStrt = 0.0, dEnd = 0.0, dLast = 0.0; static bool bStart = true; ::QueryPerformanceCounter(&liTmp); if(bStart) { dStrt = double(liTmp.QuadPart); dLast = 0.0; bStart = false; } else { dEnd = double(liTmp.QuadPart); ::QueryPerformanceFrequency(&liTmp); dFrequency = double(liTmp.QuadPart); dLast = (dEnd - dStrt) / dFrequency; bStart = true; } return dLast * 1000; } inline unsigned __int64 GetCycleCount() { unsigned __int64 retvl = 0; __asm _emit 0x0F __asm _emit 0x31 __asm mov dword ptr retvl, eax return retvl; } unsigned __int64 CircleRecorder() { static unsigned __int64 dLast = 0; static bool bStrt = true; unsigned __int64 temp = bStrt ? GetCycleCount() : dLast; dLast = GetCycleCount(); bStrt = !bStrt; return dLast - temp; } |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值