How do include paths work in Visual Studio?

Posted by Paperflyer on Stack Overflow See other posts from Stack Overflow or by Paperflyer
Published on 2010-04-20T15:30:57Z Indexed on 2010/04/20 15:33 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

Visual Studio drives me crazy and I am suspecting I am doing something wrong.

This is what I do: I installed Visual Studio (Pro '08) a long time ago, I installed the Windows SDK (Win 7 x64), someone emails me a project, it fails to build.

Invariably, it can not find windows.h. While it is easy enough to include C:\Program Files\Microsoft SDKs\Windows\v7.0\Include in the project settings of every single project, I feel that this may not be the proper way to do it. Is there a way to somehow make Visual Studio globally aware of these files?
I also tried to include the above directory in the path variable but that didn't change anything.

Also, it will randomly find windows.h but not winresrc.h in the same directory.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about visual-studio