flat assembler
Message board for the users of flat assembler.

Index > Windows > Multiple resources in same directory?

Author
Thread Post new topic Reply to topic
Ehtyar



Joined: 26 Sep 2006
Posts: 51
Ehtyar
Hi all.
I'm a newbie to the resource macros of FASM, and i'm trying to add two binary files to a single RC Data dir in resources. The most obvious method doesnt work:
Code:
directory RT_RCDATA,appBinData

     resource  appBinData,\
               32,LANG_NEUTRAL,binOne
     resource  appBinData,\
               33,LANG_NEUTRAL,binTwo
     
     resdata binOne
          file 'file.dll'
     endres

     resdata binTwo
          file 'file.bin'
     endres    
because the second declaration of appBinData is erroneous.
I tried various methods of adding binBass and binModu together in the single declaration (+ & , etc) but all returned errors.
i then tried this:
Code:
directory RT_RCDATA,appBinData

     resource  appBinData,\
               32,LANG_NEUTRAL,binOne
     resdata binOne
          file 'file.dll'
          file 'file.bin'
     endres    
which compiled fine, but when examining the resource section, file.bin appeared to be attached to the end of file.dll, which is needless to say, unacceptable.
If anyone could explain to me how this might be accomplished, i'd really appreciate it.
Thanks, Ehtyar.
NOTE: Please no suggestions about using a resource compiler and a linker, all i wish to know is whether or not this can be done using the macros, and if so, how.
Post 10 Oct 2006, 00:28
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
I think you would have to do something like this:
Code:
directory RT_RCDATA, appBinData 

     resource  appBinData, 32, LANG_NEUTRAL, binOne,\ 
                           33, LANG_NEUTRAL, binTwo 
      
     resdata binOne 
          file 'file.dll' 
     endres 

     resdata binTwo 
          file 'file.bin' 
     endres    
Post 10 Oct 2006, 04:57
View user's profile Send private message Reply with quote
Ehtyar



Joined: 26 Sep 2006
Posts: 51
Ehtyar
Thanks so much madmatt, works perfectly Smile
Post 10 Oct 2006, 09:13
View user's profile Send private message 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 YouTube, Twitter.

Website powered by rwasa.