flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > invoke problem with windows api

Author
Thread Post new topic Reply to topic
wisepenguin



Joined: 30 Mar 2005
Posts: 129
i have just downloaded 1.62 from the website and started to make a simple program however nothing compiles.

i get "error: undefined symbol" with this code.

----------------
include "win32axp.inc"

section ".code" code readable executable

invoke GetCommandLine
invoke MessageBox, HWND_DESKTOP, eax, NULL, MB_OK
invoke ExitProcess, 0

i get the error, no matter which functions i use.
Post 19 Jul 2005, 02:07
View user's profile Send private message Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
sorry, it was my mistake.
its late and i should be asleep.

include "win32axp.inc"

section ".text" code readable executable

start:
invoke GetCommandLine
invoke MessageBox, HWND_DESKTOP, eax, NULL, MB_OK
invoke ExitProcess, 0
.end start

im such a tit
Post 19 Jul 2005, 02:41
View user's profile Send private message Reply with quote
rwalt



Joined: 27 Apr 2004
Posts: 19
Location: Illinois, USA
Well if you are using the .end macroinstruction, use the .code MI as well.
Code:
include 'win32axp.inc'

.code
start
        ;...
.end start
    

_________________
DarkStar
Post 19 Jul 2005, 05:05
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-2019, Tomasz Grysztar.

Powered by rwasa.