The MASM Forum

General => The Campus => Topic started by: Juliano de la SMK on September 19, 2017, 03:44:06 AM

Title: My first Project with MASM32 !
Post by: Juliano de la SMK on September 19, 2017, 03:44:06 AM
hello everyone !

today, i launch me to the code in assembler with MASM32 !
i speak french and i don't understand this tutorial : https://www.youtube.com/watch?v=DT8qW8zEHc4 (https://www.youtube.com/watch?v=DT8qW8zEHc4)

because i want to explain me this msgbox code source line by line :


.386
.model flat,stdcall
option casemap:none

    include         \masm32\include\windows.inc   

    include         \masm32\include\masm32.inc
    includelib      \masm32\lib\masm32.lib

    include         \masm32\include\kernel32.inc
    includelib      \masm32\lib\kernel32.lib

    include         \masm32\include\user32.inc
    includelib      \masm32\lib\user32.lib


.data

    szMessageText       DB  "Hello, i am a message box.", 0
    szMessageCaption    DB  "New Window !", 0


.code

ep_start:

    Invoke MessageBox, NULL, ADDR szMessageText, ADDR szMessageCaption, MB_OK

    Invoke ExitProcess, NULL

end ep_start


Thank you for your replies,
Juliano de la SMK.
Title: Re: My first Project with MASM32 !
Post by: hutch-- on September 19, 2017, 09:22:28 AM
Congratulations Juliano  :t
Title: Re: My first Project with MASM32 !
Post by: Kenozeed on October 02, 2017, 04:00:22 PM
I will try to use code. Thank you for coming
Title: Re: My first Project with MASM32 !
Post by: Mikl__ on October 02, 2017, 11:08:25 PM
Hi, Juliano de la SMK!
    include         \masm32\include\windows.inc   

    include         \masm32\include\masm32.inc
    includelib      \masm32\lib\masm32.lib

    include         \masm32\include\kernel32.inc
    includelib      \masm32\lib\kernel32.lib

    include         \masm32\include\user32.inc
    includelib      \masm32\lib\user32.lib
There is macro uselib in \masm32\macros\macros.asm. The "uselib" macro allows names that are used for both include files and library file to be used in a list without extensions. Note the following order of include files where WINDOWS.INC should be included first then the main macro file BEFORE this macro is called.        include \masm32\include\windows.inc
        include \masm32\macros\macros.asm
        uselib masm32,gdi32,user32,kernel32,Comctl32,comdlg32,shell32,oleaut32,msvcrt