GreatDane
GreatDane

Reputation: 693

How to correctly add resources in a rc file

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?

Upvotes: 0

Views: 2352

Answers (1)

Igor Tandetnik
Igor Tandetnik

Reputation: 52621

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

Upvotes: 1

Related Questions