Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have including the files to my projects by simply : #include "myheader.hpp" and adding the headers into the solution explorer.

But recently I have realized that I may omit the step of adding the headers to the solution explorer because it does not change anything. The only important fact is to define proper include directories in project properties.

Am I missing something here ? Can someone clever explain this to me ?

share|improve this question
up vote 4 down vote accepted

Mainly just to give you single click editing.

The solution explorer doesn't effect the dependancy of the build/compiler.

edit. Sometime's it's necessary if you need to 'compile' a header eg. a COM .idl or some Qt moc header file.

share|improve this answer

Some source control systems may not add the header files to source control if they are also not added to the solution file. Your mileage may vary, depending on the source control you use and how you use it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.