Folders in c++ project

P

Pavel A.

I've added a project to a VC2005 PRO solution, using the "Create from
existing code" wizard.
After completing the wizard, I tried to add some "folders" to the
project: C files, H files, etc.
But it creates real, filesystem folders rather than "virtual"
(or they are called filters?)
Also, Solution explorer shows all other files in the filesystem folder
where the project is located; when I try to remove them from the view,
it actually deletes the files!
Otherwise, this project builds and runs just fine.

So now I have two projects in this solution: one with "virtual" folders,
and the new one, that shows the actual files and folders.

For the life of me, I can't see how to persuade VS2005 to make "virtual"
folders for the latter project, or, at least, display only files that
belong to the project in the Project explorer view.
I've compared two .vcproj files and couldn't spot any significant
difference - except the latter project has UniqueIdentifier attribute in
<Filter> tags, which I tried to delete - didn't help.


Regards,
--pa
 
D

David Wilkinson

Pavel said:
I've added a project to a VC2005 PRO solution, using the "Create from
existing code" wizard.
After completing the wizard, I tried to add some "folders" to the
project: C files, H files, etc.
But it creates real, filesystem folders rather than "virtual"
(or they are called filters?)
Also, Solution explorer shows all other files in the filesystem folder
where the project is located; when I try to remove them from the view,
it actually deletes the files!
Otherwise, this project builds and runs just fine.

So now I have two projects in this solution: one with "virtual" folders,
and the new one, that shows the actual files and folders.

For the life of me, I can't see how to persuade VS2005 to make "virtual"
folders for the latter project, or, at least, display only files that
belong to the project in the Project explorer view.
I've compared two .vcproj files and couldn't spot any significant
difference - except the latter project has UniqueIdentifier attribute in
<Filter> tags, which I tried to delete - didn't help.

Pavel:

Something I learned only recently is that there is a confusingly named "Show all
files" button at the top of Solution Explorer that toggles whether the view is
filters or files. It sounds as if yours might be set to show files.
 
P

Pavel A.

David, thank you a lot!
It was exactly that. never noticed this button before, thought
it is somewhere in the View menu.

Regards,
--pa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top