Whenever I add a CEdit I have to "Rebuild all"
-
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.
-
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.
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
-
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.
Just add the
resource.h
file only to the .cpp files where you actually need any ID defined in this file. Never ever put theresource.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(); -
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.