how to add header(.h) file in resource file (.rc)

hi,

I am getting below error when I compile an resource project in VC++ 2003.

error RC2104 : undefined keyword or key name: E_CANTCREATELIST

when I rearch about this keyword, I found its definition in one of the header file. please let me know how to add this header file information in above resource file to avoid above error.

Reagrds

Shiv




Answer this question

how to add header(.h) file in resource file (.rc)

  • Ali Katouzian

     rudra_shiv wrote:
    [...]please let me know how to add this header file information in above resource file to avoid above error.[...]

    If you right-click on your .RC file in Resource View window, you will see the Resource Includes command, and then Read-only include directives field. I think this is the right place for custom #include directives.

     


  • vitich

    Try to add this definition to resource.h file. .rc file itself is managed by resource editor.
  • kzu

    What exactly is E_CANTCREATELIST Is it an ID of a control or resource If so, it belongs to resource.h, which, as Alex said, is included in the .rc file.

  • how to add header(.h) file in resource file (.rc)