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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Whenever I add a CEdit I have to "Rebuild all"

Whenever I add a CEdit I have to "Rebuild all"

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 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.
  • L Offline
    L Offline
    Lockhart
    wrote on last edited by
    #1

    The project I'm working on is quite big now, but I don't think it's messed up too much :) What's happen? Some weeks ago this situation started: everytime I add a CEdit or any other item to a CDialog based class, I have to "Rebuild All" the project because the compiler tells me that it can't find "IDC_XXX" identifier. Can anyone help me? Thanks in advance.

    M A L 3 Replies Last reply
    0
    • L Lockhart

      The project I'm working on is quite big now, but I don't think it's messed up too much :) What's happen? Some weeks ago this situation started: everytime I add a CEdit or any other item to a CDialog based class, I have to "Rebuild All" the project because the compiler tells me that it can't find "IDC_XXX" identifier. Can anyone help me? Thanks in advance.

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      The compiler doesn't know that the resource.h file has been updated. I used to have this problem when I included resource.h via the stdafx.h header file. Michael :-) Time flies like an arrow. Fruit flies like a banana

      1 Reply Last reply
      0
      • L Lockhart

        The project I'm working on is quite big now, but I don't think it's messed up too much :) What's happen? Some weeks ago this situation started: everytime I add a CEdit or any other item to a CDialog based class, I have to "Rebuild All" the project because the compiler tells me that it can't find "IDC_XXX" identifier. Can anyone help me? Thanks in advance.

        A Offline
        A Offline
        Andreas Saurwein
        wrote on last edited by
        #3

        Just add the resource.h file only to the .cpp files where you actually need any ID defined in this file. Never ever put the resource.h into your stdafx.h, as convenient as it may seem.

        int x=1, y=5;
        x^=y^=x^=y; // whats the content of x and y now?
        ClickHereForHelp();

        1 Reply Last reply
        0
        • L Lockhart

          The project I'm working on is quite big now, but I don't think it's messed up too much :) What's happen? Some weeks ago this situation started: everytime I add a CEdit or any other item to a CDialog based class, I have to "Rebuild All" the project because the compiler tells me that it can't find "IDC_XXX" identifier. Can anyone help me? Thanks in advance.

          L Offline
          L Offline
          Lockhart
          wrote on last edited by
          #4

          Thanks! There was an heaeder in "stdafx.h" that included an header that included an header tht included "resource.h" :)

          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