Why I cant use this in my program !

format PE GUI 4.0
entry begin
include '%include%\win32a.inc'

begin:
push 0
push _title
push _text
push MB_OK
call

push 0
call

_text db 'Fasm is Cool' ,0
_title db 'Title',0

; Error section

data import
library kernel,'KERNEL32.DLL',\
user, 'USER32.DLL'
kernel:
import ExitProcess,'ExitProcess' ; <--- Error here says "if used 'ExitProcess'"
user:
import MessageBox,'MessageBoxA'
end data

;End Of Error Section

What to do so i can use instead of this

section '.idata' import data readable writeable
library kernel,'KERNEL32.DLL',\
user, 'USER32.DLL'

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

Thnx in Advance
Posted on 2003-04-04 02:37:11 by Casper
Just:


data import
library kernel,'KERNEL32.DLL',user, 'USER32.DLL'
import kernel,ExitProcess,'ExitProcess'
import user,MessageBox,'MessageBoxA'
end data
Posted on 2003-04-04 03:01:43 by Tomasz Grysztar
Wow that was easy :)

Thnx again man n Take Care !
Posted on 2003-04-04 03:04:49 by Casper