Hi everyone , i'm New comer, i want to learn MASM, Finally i found the best ASM IDE : RadAsm.

Radasm help me alot to learn MASM easier, but i don't know how to begin, i don't want learn Ize'stutorial because it is more difficult than use Radasm to learn.I have seen ranma_at's tutorial but it is so difficult for newcomer like me (Sorry ranma_at).The tutorial must be more simply.

Can you help me to know how to use Radasm to make the "hello world" :

- How to register and make button to show Dialogbox when i click to the button.
- How to make one button visible or disable and contrary when i click to another button.
-How to change the caption of label when click to button.
Posted on 2003-12-02 03:32:27 by neverending
There is no easy way to learn Windows API and assembler the same time, i come from VB and had a very very hard time.
But now somehow (after 2 months ) i finally got it. ( i still have to learn alot though )


- How to register and make button to show Dialogbox when i click to the button.
- How to make one button visible or disable and contrary when i click to another button.
-How to change the caption of label when click to button.



Place a button on the dialog and then look at its ID and write this ID in your Radasm inc file under .const



.const
IDC_BTN1 equ 1002
IDC_BTN2 equ 1003
IDC_STC1 equ 1004

.data ?
hBtn1 dd ?
hBtn2 dd ?

.code
;place where
.elseif eax==WM_INITDIALOG
invoke GetDlgItem,hWin,IDC_BTN1
mov hBtn1,eax

invoke GetDlgItem,hWin,IDC_BTN2
mov hBtn2,eax
;place where
.elseif eax==WM_COMMAND
mov eax,wParam
and eax,0FFFFh
.if eax==IDC_BTN1
invoke EnableWindow, hBtn2, 0
invoke SendDlgItemMessage,hWin,IDC_STC1,WM_SETTEXT,0,offset AppName
.endif


In my tutorial #2 its documented very well how to place buttons and give them their ID`s neverending, even with screenshots.

Dont give up!

regards

Ranma_at
Posted on 2003-12-02 03:51:15 by Ranma_at
neverending,

You should read iczelion's win32asm tutorial you will be able to do what you're asking here after you've read up to tutorial #12.
Posted on 2003-12-02 03:54:19 by Odyssey
here is a sample that covers a few basics of the basics like neverending wanted to know about the winapi...
there are a few way to do what neverendig was asking for, note that i choose the most easiest, not the best
therefor its simple.

Its really basic, see yourself:
Posted on 2003-12-02 06:54:46 by Ranma_at
here is the full source code, but i suggest reading iczelions tutorials - will do more.
Posted on 2003-12-02 06:56:23 by Ranma_at
Thank everyone , i did it, thank ranma_at alot for your source code.
Posted on 2003-12-02 21:06:47 by neverending