flat assembler
Message board for the users of flat assembler.

Index > Windows > this, imho, should work, but why it won't?

Author
Thread Post new topic Reply to topic
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
hi,
i have started to play with the resource, just encountered one problem,
i wish to tie 2 icon into grouped icon (one is 16x16 and another one is 32x32)
into an application, below is my section 'rsrc' resource data readable

Code:
section '.rsrc' resource data readable
    directory RT_ICON,appIcon,\
            RT_GROUP_ICON,appGroupIcon
    
    resource    appIcon,\
            1,LANG_NEUTRAL,icoBig,\
            2,LANG_NEUTRAL,icoSmall
    
    resource    appGroupIcon,\
            17,LANG_NEUTRAL,icoGroup
    
    icon    icoGroup,icoBig,'iBig.ico'
    icon    icoGroup,icoSmall,'iSmall.ico'
    


i received the following error
flat assembler version 1.55
exp04.asm [115]:
icon icoGroup,icoSmall,'iSmall.ico'
D:\FASM\1.55W\INCLUDE\macro/resource.inc [73] icon [13]:
group dd RVA header,6+count*14,0,0
error: symbol already defined.

actually, i did search this forum for related information
Code:
  section '.rsrc' resource data readable

  directory RT_GROUP_ICON,group_icons,\
        RT_ICON,icons

  resource group_icons,\
         100,LANG_NEUTRAL,First_icon,\
         200,LANG_NEUTRAL,Second_icon,\
         1,LANG_NEUTRAL,Third_icon,\
         2,LANG_NEUTRAL,Fourth_icon
; The lowest icon number will be used as the main window Icon, other icons can be used for
; the Window small icon or for other controls.

  resource icons,\
         100,LANG_NEUTRAL,First_icon_data,\
         200,LANG_NEUTRAL,Second_icon_data,\
         1,LANG_NEUTRAL,Third_icon_data,\
         2,LANG_NEUTRAL,Fourth_icon_data

  icon    First_icon,First_icon_data,'Active1.ico'
  icon    Second_icon,Second_icon_data,'Active2.ico'
  icon    Third_icon,Third_icon_data,'Filesys3.ico'
  icon    Fourth_icon,Fourth_icon_data,'Check mark.ico'
    

but the above code will just create 4 groups :( not what i want.
if you use the ResHackder to view the resource of my ieSwitchImage.exe
http://sulaiman.thefreebizhost.com/software/ieSwitchImage.zip
u will really see those icons are grouped together under the Icon Group.
(i use RC last time to compile the resource file).
if u view notepad with ResHacker, u will also see the same result.


sincerely,
vbVeryBeginner d(*.*)b
Post 28 Aug 2004, 16:47
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7797
Location: Kraków, Poland
Tomasz Grysztar
Do it this way:
Code:
icon    icoGroup,icoBig,'iBig.ico',\ 
                 icoSmall,'iSmall.ico'    


I'm really sorry I still haven't written any good documentation for the macros from fasmw package, anyway I remember it's on my "to do" list.
Post 28 Aug 2004, 16:53
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
wow, superb after-download support Smile
u solved it in 6 minutes Smile
thumbs up for u privalov Smile
Post 28 Aug 2004, 17:04
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.