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.
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.
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
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
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
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.
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.
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:
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:
here is the full source code, but i suggest reading iczelions tutorials - will do more.
Thank everyone , i did it, thank ranma_at alot for your source code.