views:

77

answers:

3

I am new to this platform, and I am trying to resolve an issue with existing code that was developed by a contractor many years ago.

In Resource.h, I have something that looks like this, where the last two items I have added.

#define IDC_HOSPITAL_NAME_LABEL         1069
#define IDC_REASON_LABEL                1070
#define IDC_HOSPITAL_NAME_EDIT          1071
#define IDC_COMMENTS_EDIT               1072
#define IDC_COMMENTS_LABEL              1073

I have compiled and deployed several times, I am using the constants in code and it doesn't complain on compile, however, while it might be unrelated to an issue I am trying to resolve, I do notice that in the IDE, if I right click and "Goto" definition of my new added items, it says "The symbol 'IDC_COMMENTS_LABEL' is undefined."

In fact, it will happen even if I do this at the definition, where as it works as expected with the other non-new definitons.

+1  A: 

Sounds to me like its just "one of those things". You will notice plenty. Try not to get too wound up by them. In the end ... if it compiles ... don't worry about it :)

Goz
+1  A: 

Do you have a newline on the last line? A missing one may confuse the IDE's symbol parser

AShelly
I will definitely check, thanks for the tip.
kmacmahon
+1  A: 

Have you tried rebuilding? You might also try quitting VS, deleting the intellisense file (*.ncb), and rebuilding.

Ryan Ginstrom
Oh yes, I tried rebuilding, closing the UI. Rebuilding All. The code compiles, the code executes. I do have one issue, that I thought might be relative to this but I'm thinking not so much anymore, probably unrelated.
kmacmahon