flat assembler
Message board for the users of flat assembler.

Index > Windows > Newbie(I need a smaal code)

Author
Thread Post new topic Reply to topic
logic



Joined: 21 Oct 2003
Posts: 5
logic 22 Oct 2003, 16:51
Hi
I am very experienced programmer of C,C++,Vb,Java.
I may be new to assembly language but i know all basic concepts registers,opcode,memory,stack,etc.What i don't is how to apply these concepts.Therefore i need the syntax.

Please give a small code that has couple of textboxes to take input and button.On clicking the button he program displays a messagebox containg the sum of two number from the 2 texteditors.

I am using Win2000 and FASM win32 version.

Sandy
Post 22 Oct 2003, 16:51
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 22 Oct 2003, 20:49
Why don't you look and find out?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 22 Oct 2003, 20:49
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
logic



Joined: 21 Oct 2003
Posts: 5
logic 23 Oct 2003, 05:30
Well the website gave me had codes in Masm and i am using FASM.Please tell where to get codes in FASM.It would we very nice of you if someone could give me the exact code i want.

I have seen "Iczelion's Win32 Assembly Homepage".But none of the tutorials give code to get input from the user in textbox.

Sandy
sandeep_bansal@da-iict.org
Post 23 Oct 2003, 05:30
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 23 Oct 2003, 06:54
Please take a look at the FASMW examples, especially the Dialog example.
Post 23 Oct 2003, 06:54
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 23 Oct 2003, 11:33
Hi,

(i suggest)

1. must extract all fasm example codes in flatassembler forum(the code in every threads)

2. and move the examples to fasm code forum category(code sniffet)

--
Wink
Post 23 Oct 2003, 11:33
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 23 Oct 2003, 13:02
logic wrote:

Please give a small code that has couple of textboxes to take input and button.On clicking the button he program displays a messagebox containg the sum of two number from the 2 texteditors.



Look at the dialog example to see how to create a program with textboxes and a button. I think it would be a good idea to look at iczelion's tutorial for using a dialog box before you look at the dialog example. If the numbers you're adding are integers you can use the GetDlgItemInt function to get the value from the textboxes. After you get the numbers you add them but before you can display the result in the messagebox you'll have to convert the number to a string. You can use the wsprintf function for that. Hope this helps.

_________________
silkodyssey
Post 23 Oct 2003, 13:02
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.