[-]
Shout:
Click Refresh to load shouts.

Post Reply 
 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple MessageBox question
05-04-2009, 09:41 AM
Post: #1
Simple MessageBox question
Hello
I'm learing asm atm from some online tutorials.

I can't solve one thing. How its possible to show messagebox but with byte values?
Or how to convert byte to a string, is there any inttostr or something like that? Or is there any other way to do it?


Code:
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data
MsgBoxCaption  db "Hello",0
ClassName db "TibiaClient",0
test dd 123
.code

start:

invoke MessageBox, NULL, test, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start

[Image: userbar.php?lid=34&styl=1] szukarka.com - najlepsza wyszukiwarka muzyki w sieci.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-04-2009, 12:37 PM
Post: #2
Simple MessageBox question
nvm problem solved

Code:
include \masm32\macros\macros.asm    

    include \masm32\include\masm32.inc

    includelib \masm32\lib\masm32.lib

   ....

   invoke MessageBox, NULL, str$(test), addr MsgBoxCaption, MB_OK

   ....

^^

[Image: userbar.php?lid=34&styl=1] szukarka.com - najlepsza wyszukiwarka muzyki w sieci.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 



Contact UsTProgrammingReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication