   VC++ 7.0 IDE question.vely simple
  what are the "source files" and "header files" folders in the solution explorer used for?I can still build my project even if I delete all the files in them. 
  Many people are happy when things are kept tidy and well divided into categories. As a matter of fact, many people like to keep their source files together, and their header files together.But it can sometimes be a hassle to create these folders every time you create a new project, AND to add your files to them manually. In order to make life easier for these people, the Visual C++ IDE creates these two folder, and also dispatches the source and header files to the corresponding folders.Of course, if you don''t want things this way, you can simply delete the two folders and housekeep the files yourself. It'' up to you.However, if you have no files in your project at all, that means you have no code, so your application won''t probably be doing much at all.   Victor Nicollet, INT13 game programmer ;  Woouldn''t it be nice if the directory structure you create in the ide is mirrored on the disk. ;quote:Original post by digitalfreak  what are the "source files" and "header files" folders in the solution explorer used for?I can still build my project even if I delete all the files in them.   I don''t think you can. You can build it when you removed all your header files, but if you remove all your source files, you might be able to build it, but it your program certainly won''t run. I even don''t think it will build, for there won''t be a main or WinMain function, so you will get an unresolved external.   My Site;quote:Original post by PantherBoy  Woouldn''t it be nice if the directory structure you create in the ide is mirrored on the disk. It does, if you use C#. Very nice feature. You should never let your fears become the boundaries of your dreams. ;quote:Original post by quasar3d  quote:Original post by digitalfreak   what are the "source files" and "header files" folders in the solution explorer used for?I can still build my project even if I delete all the files in them.   I don''t think you can. You can build it when you removed all your header files, but if you remove all your source files, you might be able to build it, but it your program certainly won''t run. I even don''t think it will build, for there won''t be a main or WinMain function, so you will get an unresolved external.   My Site I first built the project while keeping all the files,and then deleted all the files,built again,and it ran;  You can''t delete files in VC++, just remove them from the project. ;quote:Original post by _DarkWIng_   It does, if you use C#. Very nice feature.I absolutely hate it!  It *FORCES* me to use the same directory structure as thefolder structure in the Solution.  Why?I want to put everything in the same namesapce under itsown directory, but I also want to organize them differentlyin the Solution folders.Is there any option to turn this annoying feature off?  I couldn''t find it. Kami no Itte ga ore ni zettai naru! ;quote:Original post by PantherBoy   Woouldn't it be nice if the directory structure you create in the ide is mirrored on the disk.   Sometimes I add some of the stl headers (in a folder called 'std'), add opengl headers, etc... and the purpose of doing this is two fold - so intellisence works with them, and so I can find the files quickly, without browsing through a bunch of directories.I also have a cross-platform project, where all the source is in a 'master' src directory, and then there are a bunch of sub-dirs for each environment.  It was a royal pain to make this work with linux IDEs - they all wanted the stuff in thier tree browser to match the disk.  I tried using symbolic links, and that confused Anjuta, and it trashed my source files!So no, I think it should remember where the file is relative to the base-path of the project, and let you build a logical representation of that project's organization, regardless of how the files are stored on disk.   [edited by - Magmai Kai Holmlor on February 15, 2004 11:24:26 AM]