how to include header file

i want to include a header file which is in the same directory of source file..i am using visual c++2010..
Can't you just do #include "name_of_header_file.h" ?
I tried this as #include<header.h>
bt its not working...
You first have to add it to your project. In the Solution Explorer rightclick 'Header Files'->Add->Existing Item, then find your header file and double click it. #include "name_of_header_file.h" should work now.
You shouldn't actually need to add it to your solution. Just include with quotes instead of with <>.
working as #include"name.h" thanks to all.
Topic archived. No new replies allowed.