flat assembler
Message board for the users of flat assembler.

Index > Windows > stupid question: about macro error

Author
Thread Post new topic Reply to topic
dxl



Joined: 17 Sep 2005
Posts: 16
dxl
hi,

I m trying to compile a modified version of the hello world program included in fasm windows package:

include 'include\win32a.inc'

format PE GUI 4.0
entry begin

section '.code' code import writeable readable
library kernel,'kernel32.dll',\
user,'user32.dll'

import kernel,ExitProcess,'ExitProcess'
import user,'MessageBox','MessageBoxA'

begin:
invoke MessageBox,0,"blah","blah",0
invoke ExitProcess,0


fasm doesnt like my second import.

the problem is the "import" macro.
btw: i know all the code is in one section. that what i want.
Post 06 Jun 2008, 23:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17274
Location: In your JS exploiting you and your system
revolution
Just remove the quotes:
Code:
import user,MessageBox,'MessageBoxA'    
Post 07 Jun 2008, 00:50
View user's profile Send private message Visit poster's website Reply with quote
dxl



Joined: 17 Sep 2005
Posts: 16
dxl
tx stupid me. Embarassed
Post 07 Jun 2008, 12:27
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-2020, Tomasz Grysztar.

Powered by rwasa.