SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

windres error with RCDATA Resource

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder
View previous topic :: View next topic  
Author Message
dit6a9



Joined: 01 Aug 2004
Posts: 4

PostPosted: Sun Aug 01, 2004 9:51 pm    Post subject: windres error with RCDATA Resource Reply with quote

I use Dev-C++ 4.9.8.0. I trying to compile a simple Windows Application in C which uses a .rc file like this:

Code:
#include <windows.h>
   
RCDATA_0 RCDATA
MOVEABLE PURE LOADONCALL DISCARDABLE
LANGUAGE LANG_NEUTRAL, 0
BEGIN
'50 4B 03 04 14 00 00 00 08 00 6C 8E 83 25 A0 DE '
'2D 2A B0 C3 03 00 0E 3B 0F 00 08 00 00 00 52 53 '
'33 32 2E 48 4C 50 BC 5B 0B 74 1C D5 79 FE 77 25 '
...
...
'00 00 00 00 01 00 01 00 36 00 00 00 D6 C3 03 00 '
'00 00 '
END


This .rc file specifies a raw data resource for my application. The purpose of this .rc file is to include binary data directly in the executable file. I've made the .rc file using Resoucer Builder.

When I try to build my proyect I get the following error message:

Code:
stdout: Invalid argument
windres.exe: resources.rc:7: parse error
make.exe: *** [resources_private.res] Error 1


What is the problem? Has the .rc file generated by Resource Builder some errors or a format not valid for windres?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Mon Aug 02, 2004 5:33 am    Post subject: Reply with quote

Actually, the RC file generated by Resource Builder is 100% RC format compliant. May be windres has some problems with parsing RC files (http://mywebpage.netscape.com/PtrPck/windres.htm)?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by p h p B B  © 2001, 2005 p h p B B  Group