Software development, when a project is relatively large, the source file in the project will grow sharply. If these files are placed in the root directory of the project, it is bound to cause some inconveniences. The general method is to place the file slots in different subdites, and then use the relative path to specify the included files when the file is included in the file. The disadvantage of this approach is that when the project has changed, the classification relationship is changed, and the sub-directory name containing the relationship and classification in the source code is required.
In fact, the solution to this type of problem in the development environment of VC6 is to set the "predessor" directory, so that the compiler is looking for project files, not only in the root directory of the project, but also to pre-set In the "Pred-processed" directory, you are looking for so that when you classify changes, you only need to set up in "prerequisites", you can resolve the problem that you can't find the source file when compiling.
Example: A project, the project root directory is: ProductaniMation Create three subdirectories by category: CHAR, AniobJBase, the file in the subdirectory in the root directory, files in a subdirectory with the file in another subdirectories, In the root directory, the files and subdirectory in the subdirectory contain the relationship to correctly find the correspondingly included file correctly, perform the following settings: Project-> settings-> C / C tab -> category drop-down box Select "Preprocessor" -> Additional or Add the following: "../ ProductaniMation, Aniobj, AniobjBase, Char" is completed.