Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Resource Files ( .rc .res)

Resource Files ( .rc .res)

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helplearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kedar dave
    wrote on last edited by
    #1

    hii...i am transferrin the resources from one exe to another.... also i am saving the resources as a .rc using the Resource Hacker software...which replaces the existing .rc file of the project..... but i am getting the following error:- "error RC 2019 : expected preprocessor command, found '1' " (the error gigving line is-- #106 MENU) this one is due to the id of the MENU resource i hav trasnferred from another exe the next error is:- "RC Terminating after preprocessor errors" how can i solve this? is ther another way pf updating the .rc or .res files of a projetc using VC++ programming ? regards, kedar.

    M 1 Reply Last reply
    0
    • K kedar dave

      hii...i am transferrin the resources from one exe to another.... also i am saving the resources as a .rc using the Resource Hacker software...which replaces the existing .rc file of the project..... but i am getting the following error:- "error RC 2019 : expected preprocessor command, found '1' " (the error gigving line is-- #106 MENU) this one is due to the id of the MENU resource i hav trasnferred from another exe the next error is:- "RC Terminating after preprocessor errors" how can i solve this? is ther another way pf updating the .rc or .res files of a projetc using VC++ programming ? regards, kedar.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Numeric resource IDs in an .rc file are just numbers. A # symbol introduces a preprocessor command (such as #include, #ifdef, etc). Delete the # and you should be fine. You can open an .rc file in Visual Studio, then drag and drop resources from it to the Resources tab of your project. Hold Ctrl to copy resources rather than move (which is, bizarrely, the default). Stability. What an interesting concept. -- Chris Maunder

      K 1 Reply Last reply
      0
      • M Mike Dimmick

        Numeric resource IDs in an .rc file are just numbers. A # symbol introduces a preprocessor command (such as #include, #ifdef, etc). Delete the # and you should be fine. You can open an .rc file in Visual Studio, then drag and drop resources from it to the Resources tab of your project. Hold Ctrl to copy resources rather than move (which is, bizarrely, the default). Stability. What an interesting concept. -- Chris Maunder

        K Offline
        K Offline
        kedar dave
        wrote on last edited by
        #3

        hii...i removed the '#' from the code but aftrwards i got the following errors:- 1)Primary Language Id is not a number 2)WS_**** undeclared/undefined (for the transferred resource) how can i solve these errors? regards, kedar.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups