This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Windres gives parsing errors when resource names begin with underscores


Hello everyone,

I was using a mingw cross-compiler to develop a game for Windows that
would target XP and Vista (among other platforms, thanks to SDL).
Vista requires, for games to appear in the Game Explorer window, that
a resource is included in the .exe file, among other things. The
resource must be named __GDF_XML (and be of the user type DATA), but
windres complains (parse error on line:...) when compiling a .rc file
such as:

__GDF_XML DATA MyVistaGameDefinitionFile.xml

Removing the leading underscores allows compilation.
Is it a bug of windres, or is it intended? Can it be changed so that this works?

I noticed that the open source XM Resource Editor for Windows also
complains when reading the above .rc file, but allows the ex-novo
creation of a .res file with a __GDF_XML resource. Windres is able to
decompile the .res into a .rc, but cannot recompile this new .rc into
a .res, failing with the same error as above.

--
- ∞


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]