My Solution Explorer Changed Again - What Did I Do?

  • Thread starter Thread starter yungman
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
yungman
Messages
5,741
Reaction score
291
I was working on a program and for whatever reason my Solution Explorer change again. Now when I toggle to Inventory.sln, this is what I have:
Solution Explorer sln.jpg
It said Inventory(unloaded). I had Header Files and Source Files with all the files in them, now it's gone.

When I toggle to the other view, the files are still there:
Solution Explorer other.jpg


I don't know what I did to make it like this and I don't know how to get it back. Please help.Also I created the project Inventory, I use Add-->New to add Inventory.h, Inventory.cpp and source.cpp. But it still it complains it cannot fine Inventory.h. Here is the printout of part of the Inventory.vcxproj that show they are all there:
Inventory.vcxproj.jpg

Please advice.

Thanks
 
Physics news on Phys.org
I have been experiment and reading, I have not seen any objection to put the header file Inventory.h in Source Files folder instead of Header Files folder. So I deleted the Inventory.h from the Header Files folder and Add-->New to create Inventory.h into Source Files folder. It seem to work ( of cause I still have errors, but it doesn't complain not finding the Inventory.h anymore).

Anything wrong with this? I have no idea why the compiler cannot find Inventory.h when it was in Header Files folder.

Thanks