views:

27

answers:

1

Hi. Im having problems with the visual studio 2010 editor. Since today, visual studio wont underline errors anymore if i use #define like so:

#ifndef TEST_H
#define TEST_H
class foo{
blabla
}
#endif

If i remove the defining commands, the errors show up.

The wierd thing is, i have other files in my project with the exact same setup and error underlining works just fine in those but not the new files that im creating?

I have tried ressetting settings and re-installing but none of it helps.

I have also tried doing this in other projects and i have the same issue.

Just wondering if anyone had a similar issue and can shed some light on this? Thanks for your time.

A: 

The cause for this isn't an exact science, and I've seen/experienced it before. In my case, dumping the intellisense database fixed it.

vcsjones
Thanks for your reply however this doesnt seem to fix my problem.I also want to note that if i change the #define to anything except the #ifndef name, the errors are underlined again.
eri23