1. Differences and occurrences of new filters and new folders in Add
New filter: When the show all files as item option is not selected, a new filter is displayed in the Add. The filter is only a logical distinction, the actual location of the file (and the new class, etc.) are still in the original position. It is only necessary to add a path to the header file containing the filter, otherwise the compiler cannot find it, or it can be added to the inclusion directory in the VC + + directory in the right-click property of the Project (ProjectDir) XXX, (note in English; and the original separation) so that you do not have to add the path when the header file is included.
New folder: When the show all files as item option is selected, the new folder is displayed in the Add. This is the real new folder in the project directory, and the newly created file will be created directly into this file.
2. Why did the existing filters in the project disappear, resulting in a mix of header files, source files, resource files, etc. under the project?
This type of problem occurs because the ProjectName.vcxproj.filters file has an exception, you can delete the file, and then select a reliable copy of the file to replace. When the illegal information in this file does not cause the program exception, so it is not easy to detect, sometimes the version on the SVN server may have such problems, generally through the SVN diff function to view the contents of the file, and the exception section (usually the SVN file version conflict caused by manual modification).
VS IDE Learning to use records