By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

What is a number for (in RC file)

P: n/a
G'day everyone

Could anyone please tell me what a little number is for?

I've used ResHack to export an RC file from a program named renfile.exe
(RenFile on sourceforge). I then compiled it into an RES file using
Jeremy Gordon's compiler.

The compiler refuses to compile the RES file if the RC file contains
these lines:

FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE, 0
FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE, 1

but accepts it if I remove the numbers, as in:

FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE
FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE

and when I update the resources in ResHack and run the program again,
nothing seems to be wrong or missing. Can anyone tell me what is the
purpose of those two numbers at the end of those lines? Are they
critical? What will happen if I remove them?

If they are necessary, I can always add them manually using ResHack's
internal GUI, but what if the RC file contains hundreds of these?
It'll take me forever to "fix" the file :-)

Thanks in advance
Samuel (aka throw, leuce, voetleuce)

Jun 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Throw wrote:
G'day everyone

Could anyone please tell me what a little number is for?

I've used ResHack to export an RC file from a program named renfile.exe
(RenFile on sourceforge). I then compiled it into an RES file using
Jeremy Gordon's compiler.

The compiler refuses to compile the RES file if the RC file contains
these lines:

FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE, 0
FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE, 1

but accepts it if I remove the numbers, as in:

FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE
FONT 8, "MS Shell Dlg", FW_NORMAL, FALSE

and when I update the resources in ResHack and run the program again,
nothing seems to be wrong or missing. Can anyone tell me what is the
purpose of those two numbers at the end of those lines? Are they
critical? What will happen if I remove them?

If they are necessary, I can always add them manually using ResHack's
internal GUI, but what if the RC file contains hundreds of these?
It'll take me forever to "fix" the file :-)

Thanks in advance
Samuel (aka throw, leuce, voetleuce)


Your question is not on-topic here since this group deals with the
standard C++ *language*, not various platforms on which it is
implemented. See this FAQ for what is on-topic and for some suggestions
of where you could get a response to this question:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Jun 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.