组装中的简单油漆 [英] simple paint in assembly

查看:110
本文介绍了组装中的简单油漆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要汇编中的源代码以使诸如Windows paint之类的油漆环境...不那么专业...仅当我拖动诸如矩形之类的形状并将其放下时,绘制一个大矩形.
请帮助我,
谢谢,

Hi,
i need a source code in assembly that make paint imvironment such as windows paint...not so profetionally like that...just when i drag a shape such as rectangle and drop this, draw a big rectangle.
please help me,
thanks

推荐答案

这里是一个很好的Win32汇编编程教程集合站点:^ ].

您还可以从 MASM32 [
Here''s a site with nice collection of Win32 assembly programming tutorials: Iczelion''s Win32 Assembly Homepage[^].

You can also get a nice little IDE package for MASM from MASM32[^].

Combine the info from these tutorials with the info on painting from something like Charles Petzold''s Win32 API book and you should be able to get something working.


尝试 ^ ],它内置了对Windows的支持.
Try Fasm[^], it has support for Windows built in.


这是完全可能的,但如果要在组装时全部完成,则非常困难.我从未听说过有人这样做,因为它看起来非常不切实际.如今,即使使用裸露的Windows API创建基本的Windows应用程序也似乎是一项艰巨的努力.我个人做到了–需要相当多的知识.

坦白说,我从来没有见过做过仅装配项目的人.我不希望有人会提供这样的代码或为您这样做.再说一次,为什么?

我不知道为什么要这样做,但这是您可以从裸Windows API项目开始的步骤.它可以在C,C ++中,或者按照我的喜好在Windows本机Windows Delphi中.开发代码,然后将其反汇编以查看其中涉及的内容.我怕说这看起来会很清醒. :-)

您也可以首先开始将一些片段放入内联汇编中,这要容易得多.当您感到舒适时,可以逐渐转向纯汇编语言.

我不禁要问为什么".如果这是某种Pen悔(我的意思是 http://en.wikipedia.org/wiki/Penance [ ^ ]),我什至不敢问起导致您的罪过对此. :-)

—SA
This is quite possible but very difficult if you want it all in assembly. I never heard anyone did it as it looks very impractical. These days, even creating a rudimentary Windows application using bare Windows API looks like a heroic effort. I personally did it — needs fairly good amount of knowledge.

Frankly, I never met a person who did it as assembly-only project. I would not hope anyone would provide such code or would do it for you. Again, why?

I don''t know why doing this, but this is a step you can start from bare Windows API project. It could be in C, C++, or, as I preferred, in native-Windows Delphi. Develop the code and that disassemble it to see what''s involved. I fear to say it will look very sobering. :-)

You can also start putting some fragments in inline assembly at first, which is a lot more easier. When you''re comfortable, you can gradually shift to pure assembly language.

I cannot help asking "why". If this is some kind of Penance (I mean http://en.wikipedia.org/wiki/Penance[^]), I would be afraid even to ask about your sins which led you to this. :-)

—SA


这篇关于组装中的简单油漆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆