flat assembler
Message board for the users of flat assembler.
Index
> Windows > What include to use? |
Author |
|
edfed 10 Mar 2008, 13:25
it's not dos.
|
|||
10 Mar 2008, 13:25 |
|
revolution 10 Mar 2008, 13:29
If you want to get imports from msvcrt then you have to use win32a.inc.
The win32ax version will automatically import the Win32 API's when you use ".end", so when you try to import msvcrt you have a conflict. |
|||
10 Mar 2008, 13:29 |
|
optiplex 10 Mar 2008, 15:40
Thanks revolution.
But what if I want to use msvcrlt AND the librarys that win32ax.inc loads? Do I still have to load them manually with win32a.inc, or is there something else? - optiplex |
|||
10 Mar 2008, 15:40 |
|
revolution 10 Mar 2008, 15:54
With the current macros you need to do the imports yourself if you want to add extra libraries. Just copy the library section from win32ax and add the extra msvcrt and paste into your code.
|
|||
10 Mar 2008, 15:54 |
|
optiplex 11 Mar 2008, 17:58
I tried to revolution, but it wont work
macro .end label { entry label Code: section '.idata' import data readable writeable library kernel32,'KERNEL32.DLL',\ user32,'USER32.DLL',\ gdi32,'GDI32.DLL',\ advapi32,'ADVAPI32.DLL',\ comctl32,'COMCTL32.DLL',\ comdlg32,'COMDLG32.DLL',\ shell32,'SHELL32.DLL',\ wsock32,'WSOCK32.DLL' import_kernel32 import_user32 import_gdi32 import_advapi32 import_comctl32 import_comdlg32 import_shell32 import_wsock32 all_api } Just wont work Code: It gives errors, like on import_kernel32.. etc -optiplex |
|||
11 Mar 2008, 17:58 |
|
revolution 12 Mar 2008, 00:29
Try to follow one of the examples included in the Windows download. The beer example shows how to include arbitrary libraries.
|
|||
12 Mar 2008, 00:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.