Search code examples
windowsvisual-c++mfcresource-files

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?


Solution

  • 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