flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Windows > Something wrong with my macros:( | 
| Author | 
 | 
| LocoDelAssembly 18 Oct 2007, 18:36 Code: format PE GUI 4.0 entry start include '%fasminc%\win32a.inc' section '.data' data readable writeable Caption db ' ',0 section '.code' code readable writeable executable start: ; jmp next ; No need at all since macros are in the output file only at the places you call them macro WriteMessage mess { local behind push MB_OK push Caption call behind db mess,0 behind: push 0 call [MessageBox] } ;next: WriteMessage 'test string!' invoke ExitProcess,0 section '.idata' readable writeable import ; You forgot to add "import" library user32,'user32.dll',\ kernel32,'kernel32.dll' import user32,\ MessageBox,'MessageBoxA' import kernel32,\ ExitProcess,'ExitProcess' It only was a simple mistake. I also commented the first jump because it is not needed (check comments). | |||
|  18 Oct 2007, 18:36 | 
 | 
| Necromancer13 18 Oct 2007, 18:45 Oh... Thanks alot!   You always help me;) | |||
|  18 Oct 2007, 18:45 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.