windres error with RCDATA Resource

All announcements, questions and issues related to the Resource Builder
Post Reply
dit6a9
Posts: 4
Joined: Sun Aug 01, 2004 9:49 pm

windres error with RCDATA Resource

Post by dit6a9 »

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: Select all

#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: Select all

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?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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)?
Post Reply