How to correctly add resources in a rc file

1.9k views Asked by At

I'm working on a project I did not start and I added

#define IDS_SELF_UPDATE_EXIT            266

and

IDS_CONFIRM_EXIT        "Are you sure you want to quit?"

and I got the following error twice:

error RC2135: file not found

What am I doing wrong?

1

There are 1 answers

2
Igor Tandetnik On BEST ANSWER

You seem to be trying to create a stringtable resource. The correct syntax is

STRINGTABLE
BEGIN
  IDS_CONFIRM_EXIT        "Are you sure you want to quit?"
END