The MASM Forum

General => The Campus => Topic started by: ayoub on May 03, 2016, 09:48:21 PM

Title: probleme in messagebox
Post by: ayoub on May 03, 2016, 09:48:21 PM
Hi
I have a probleme in messagebox i thank the first null
Thank
Title: Re: probleme in messagebox
Post by: qWord on May 03, 2016, 10:07:06 PM
Show your code!
Title: Re: probleme in messagebox
Post by: Vortex on May 04, 2016, 03:35:45 AM
Hi ayoub,

You could check Iczelion's tutorial. This one is about message boxes :

http://win32assembly.programminghorizon.com/tut2.html
Title: Re: probleme in messagebox
Post by: ayoub on May 04, 2016, 06:17:27 AM
this code
Title: Re: probleme in messagebox
Post by: mabdelouahab on May 04, 2016, 07:29:16 AM
Quoteinvoke MessageBox,NULL,addr msgtext,addr msgtitle, NULL
Quoteinvoke MessageBox,NULL,addr MsgText,addr msgtitle, NULL
Title: Re: probleme in messagebox
Post by: jj2007 on May 04, 2016, 09:50:03 AM
As mabdelouahab noted, assembler code is case-sensitive. Perhaps you should also find the menu entry where you can change the colour settings of your editor.
Title: Re: probleme in messagebox
Post by: hutch-- on May 04, 2016, 11:00:14 AM
If you are going to post code, make sure it IS code, posting an image means the person who tries to help you has to read it from the image and re-type it to test it.
Title: Re: probleme in messagebox
Post by: TWell on May 04, 2016, 06:54:00 PM
Easier to read.386
.model flat,stdcall

option casemap:none

includelib kernel32.lib
includelib user32.lib

include kernel32.inc
include user32.inc
include windows.inc

.data
    MsgText db "hello world",0
    msgtitle db "my fist msg box",0
.code
Main:
invoke MessageBox,NULL,addr msgtext,addr msgtitle,NULL
end Main
Title: Re: probleme in messagebox
Post by: ayoub on May 04, 2016, 09:16:14 PM
thank you