Jump to content
Excelsior Forums
Sign in to follow this  
excbv

XDS-x86, v. 2.51: XDS resource compiler

Recommended Posts

Hello,

I used xrc in building the sample Generic, and it worked. However, after copying another .rc file from a tutorial on Win32 (see below), which presumably worked in another context, I got error messages. Is it possible to obtain information on the exact version of rc syntax that xrc works with?

Regards,

excbv

HEADER FILE

#define IDI_MYICON    201

#define IDD_ABOUT      301

RC FILE (Generic.rc)

/*#include "windows.h"*/

#include "generic.h"

IDI_MYICON ICON "GENERIC.ICO"

IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66

STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU

CAPTION "My About Box"

FONT 8, "MS Sans Serif"

BEGIN

  DEFPUSHBUTTON "&OK", IDOK,174,18,50,14

  PUSHBUTTON    "&Cancel",IDCANCEL,174,35,50,14

  GROUPBOX      "About this program...",IDC_STATIC,7,7,225,52

  CTEXT        "An example program showing how to use Dialog Boxes \r\n\r\nby the Forger",

                IDC_STATIC,16,18,144,33

END

ERROR MESSAGES

Generic.rc(7) : Error -- Number expected

Generic.rc(7) : Error -- "BEGIN" expected

Generic.rc(7) : Fatal error -- Can't open file | (Invalid argument)

Share this post


Link to post
Share on other sites

Just to conclude this topic:

I found xrc pretty useless (perhaps it is just a question of a lack of documentation); however, the following can be used to build .res files that can participate in the XDS build system: (a) Download ResEdit ( http://www.resedit.net/ ) to create .rc files, and use (B) windres, which is a part of MinGW ( http://www.mingw.org/ ) to create .res files.

Regards,

excbv

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×