flat assembler
Message board for the users of flat assembler.

Index > Windows > [Imports] Importing Error

Author
Thread Post new topic Reply to topic
Xirul



Joined: 19 Jun 2007
Posts: 2
Xirul 19 Jun 2007, 00:18
Hello,

I just started programming in fasm, and I ran into an obstacle (that I can't surmount). I looked at the examples & documentation, and I started coding my own GUI application. Everything is working perfectly except my import data section. Whenever I try to compile, I get the error:

Value out of range.
dd 80000000h+'RegisterClassExA' CreateWindowEx


My import section:
Code:
section '.idata' import data readable writable
        library kernel,'kernel32.dll',\
                user,'user32.dll'

        import kernel,\
               GetModuleHandle,'GetModuleHandleA',\
               ExitProcess,'ExitProcess'

        import user,\
               RegisterClassEx,'RegisterClassExA'\
               CreateWindowEx,'CreateWindowExA',\
               LoadIcon,'LoadIconA',\
               LoadCursor,'LoadCursorA',\
               MessageBox,'MessageBoxA',\
               DefWindowProc,'DefWindowProc'    


I copy & pasted an example's user32.dll imports into my code, and it compiled perfectly. I compared the example's imports to mine (down to every comma!), and it seems exactly the same...

Thanks, any and all help is appreciated Smile.
Post 19 Jun 2007, 00:18
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 19 Jun 2007, 00:43
"RegisterClassEx,'RegisterClassExA'\ " should be "RegisterClassEx,'RegisterClassExA',\ "
Post 19 Jun 2007, 00:43
View user's profile Send private message Reply with quote
Xirul



Joined: 19 Jun 2007
Posts: 2
Xirul 19 Jun 2007, 01:02
Ah, thanks! I must be blind lol.
Post 19 Jun 2007, 01:02
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.