My Solution Explorer Changed Again - What Did I Do?

  • Thread starter Thread starter yungman
  • Start date Start date
AI Thread Summary
The user experienced an issue where their Solution Explorer displayed "Inventory (unloaded)" and lost visibility of files in the project. Despite the files being present in the project structure, the compiler could not locate Inventory.h. After experimenting, the user moved Inventory.h from the Header Files folder to the Source Files folder, which resolved the missing file error but still left other errors present. The discussion highlights confusion regarding file organization in Visual Studio and the implications of file placement on compilation. Ultimately, the user seeks clarity on whether relocating the header file is appropriate.
yungman
Messages
5,741
Reaction score
294
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
 
Technology 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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top