Author Topic: My first Project with MASM32 !  (Read 166 times)

Juliano de la SMK

  • Regular Member
  • *
  • Posts: 3
    • My Personnal Website !
My first Project with MASM32 !
« 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

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

Code: [Select]
.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.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4809
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: My first Project with MASM32 !
« Reply #1 on: September 19, 2017, 09:22:28 AM »
Congratulations Juliano  :t
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

Kenozeed

  • Regular Member
  • *
  • Posts: 1
Re: My first Project with MASM32 !
« Reply #2 on: October 02, 2017, 04:00:22 PM »
I will try to use code. Thank you for coming

Mikl__

  • Member
  • ****
  • Posts: 537
Re: My first Project with MASM32 !
« Reply #3 on: October 02, 2017, 11:08:25 PM »
Hi, Juliano de la SMK!
Code: [Select]
    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.
Code: [Select]
        include \masm32\include\windows.inc
        include \masm32\macros\macros.asm
        uselib masm32,gdi32,user32,kernel32,Comctl32,comdlg32,shell32,oleaut32,msvcrt