Message board for the users of flat assembler.
> Windows > How to include multiple icons/resources
I looked at the minipad example and saw how to include one icon.
What is the format for including two or more icons?
Below is the minipad resource script:
section '.rsrc' resource data readable
; resource directory
; resource subdirectories
menuitem '&Help',0,MFR_POPUP + MFR_END
'FileDescription','MiniPad - example program',\
'LegalCopyright','No rights reserved.',\
So if I wanted to add an additional icon of minipad2.ico what would I need to do.
|06 Dec 2003, 19:22||
resource icons,\ 1,LANG_NEUTRAL,icon_data 2, LANG_NEUTRAL, icon_data2 resource group_icons,\ 17,LANG_NEUTRAL,main_icon 18, LANG_NEUTRAL, second_icon icon main_icon,icon_data,'minipad.ico' icon second_icon, icon_data2, 'myicon.ico'
Of course you may use another label names and resource ID's.
BTW: The last pre-release version of FASM (Fresh) allow inserting directly RES files, so you can make RES file with some resource editor and then to use:
section '.rsrc' resource from 'myresource.res' data readable
|06 Dec 2003, 19:49||
That is awesome, thank-you.
It will be nice when we can insert the resource files, the old method doesn't work too well(using the offset of a dummy.exe file).
|06 Dec 2003, 21:50||
wow being able to insert the compiled resource file(.res) is so nice. Fasm is really making progress and in time will be one of the best out there =). Its free too damnit! *sniffle* I love you fasm.
I shall not evade what is predestined
because every battle, is another lesson
A Believer of The System.
|12 Dec 2003, 01:10||
Grab a copy of reshack and look at other executables. It's a great way to learn the structure of the resource section.
|12 Dec 2003, 05:24||
I have an example on using external resource linker with Fasm.
Thanks to Privalov,now Fasm has a built-in resource linker
Code it... That's all...
|12 Dec 2003, 11:08||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.