Share via


How to add C++ cpp and header files to an existing Visual Studio Project and then make them show up in Solution Explorer

Question

Sunday, October 27, 2013 1:04 PM | 1 vote

Hi

I have created a C++ Project in Visual Studio 2012 Ultimate.

How do I add C++ cpp and header files to that existing Visual Studio Project and then make them show up in Solution Explorer?

Yours sincerely,

Arvind.

All replies (1)

Tuesday, October 29, 2013 9:44 AM ✅Answered

Hi Arvind,

If you want to add a new .cpp file to a project, you could use “add new item” option if you right click your project in solution Explorer windows.

Reference:

http://msdn.microsoft.com/en-us/library/vstudio/bb384842.aspx

For another issue, if you want to add head file, I think you could get useful information from the following threads:

Where does Visual Studio look for C++ Header files?

visual studio 2012 adding new header file

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.