flat assembler
Message board for the users of flat assembler.

Index > Windows > Including files

Author
Thread Post new topic Reply to topic
calpol2004



Joined: 16 Dec 2004
Posts: 110
calpol2004 15 Feb 2006, 18:35
im having trouble including files in my application, i use the following code:

Code:
directory RT_RCDATA,files
resource files,500,LANG_ENGLISH+SUBLANG_DEFAULT,picfile
fileres    picfile , 'top.gif'
    


i get the error "illegal instruction" for the line "fileres picfile,'top.gif'".
any suggestion to why this is happening?
Post 15 Feb 2006, 18:35
View user's profile Send private message MSN Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8250
Location: Kraków, Poland
Tomasz Grysztar 15 Feb 2006, 20:19
There is no longer a "fileres" macro (which was undocumented anyway), you should use the "resdata" macro combined with "file" directive, see http://flatassembler.net/docs.php?article=win32#1.6

Or, for the quick solution:
Code:
resdata picfile
  file 'top.gif'
endres    
Post 15 Feb 2006, 20:19
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.