My first fasm program:
format PE GUI 4.0
entry start
include 'win32a.inc'
section '.text' code readable executable
start:
invoke MessageBox,0,message,caption,MB_OK or MB_ICONINFORMATION
invoke ExitProcess,0
section '.data' data readable writeable
caption db 'Hi',0
message db 'This is a salute from Fasm to the Masm32 community...',0
section '.idata' import data readable writeable
library kernel,'KERNEL32.DLL',\
user,'USER32.DLL'
import kernel,\
ExitProcess,'ExitProcess'
import user,\
MessageBox,'MessageBoxA'