flat assembler
Message board for the users of flat assembler.

Index > Main > [solved] What wrong ?! Not get me MessageBox !

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1761
Roman 19 Jul 2020, 10:30
Code:
format PE GUI 4.0
entry start
include 'C:\fasmw17312\include\win32a.inc'

section '.data' data readable writeable

szAtlAxWinInit  db      'AtlAxWinInit',0


section '.code' code readable writeable executable
start:
invoke MessageBox,szAtlAxWinInit,0,0,0

invoke ExitProcess,0


section '.idata' import data readable writeable

  library kernel32,'KERNEL32.DLL',\
          user32,'USER32.DLL'


include 'c:\fasm\include/vapia/kernel32.inc'
include 'c:\fasm\include/vapia/user32.inc'
    
Post 19 Jul 2020, 10:30
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1761
Roman 19 Jul 2020, 10:32
Oh sorry.
invoke MessageBox,szAtlAxWinInit,0,0,0

must be

invoke MessageBox,0,szAtlAxWinInit,0,0

Haven't programmed for a couple of months.
Post 19 Jul 2020, 10:32
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.