flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
baldr 03 Apr 2015, 05:39
Traxler,
What kind of simplification do you need? Stock resource macros are direct implementation of PE internal structures related to resources. If the only resource you want is an icon, make a wrapper macro for those 5 lines. |
|||
![]() |
|
Traxler 03 Apr 2015, 09:33
what is a wrapper macro,can you give me example ?
|
|||
![]() |
|
baldr 06 Apr 2015, 18:29
Traxler,
Here you go (untested): Code: macro app_icon id, filename { local icons, group_icons, icon_data, main_icon section '.rsrc' resource data readable directory RT_ICON, icons, RT_GROUP_ICON, group_icons resource icons, 1, LANG_NEUTRAL, icon_data resource group_icons, id, LANG_NEUTRAL, main_icon icon main_icon, icon_data, filename } ;;; Usage: app_icon IDI_FRANCE, 'I:\Fasm\res\france.ico' |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.