flat assembler
Message board for the users of flat assembler.
Index
> Main > A problem about fasm |
Author |
|
decard 28 Mar 2004, 14:04
in this example you have to specify each funcion that you import. See the last lines of this file:
Code: import user,\ RegisterClass,'RegisterClassA',\ CreateWindowEx,'CreateWindowExA',\ (and so on...) If you want to use CloseWindow API, you have to add this function there: Code: import user,\ RegisterClass,'RegisterClassA',\ CreateWindowEx,'CreateWindowExA',\ CloseWindow,'CloseWindow',\ ; <---- DefWindowProc,'DefWindowProcA',\ GetMessage,'GetMessageA',\ TranslateMessage,'TranslateMessage',\ DispatchMessage,'DispatchMessageA',\ LoadCursor,'LoadCursorA',\ LoadIcon,'LoadIconA',\ PostQuitMessage,'PostQuitMessage' Remember that FASM is case-sensitive so you when you declare import like above, instead of Code: invoke closewindow,eax you have to use Code: invoke CloseWindow,eax Also, you don't have to add your imports manually. The import section can look like this: Code: section '.idata' import data readable writeable library kernel,'KERNEL32.DLL',\ user,'USER32.DLL' include '%fasminc%/apia/kenrel32.inc' include '%fasminc%/apia/user32.inc' ... and you will have all functions from kernel.dll and user.dll available. regards |
|||
28 Mar 2004, 14:04 |
|
zjlcc 28 Mar 2004, 17:21
thanks for your reply! thank you!!! |
|||
28 Mar 2004, 17:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.