Archived

This topic is now archived and is closed to further replies.

Geronimo2000

Visual Studio source file path name

Recommended Posts

I posted this question in the beginner section because it''s so simple, but maybe I wasn''t clear enough. I''m using Visual Studio 6.0 and also .NET, and I''m trying to set it up so that I can place all my .cpp and .h files in a folder that isn''t the project directory (probably called "Source"). I''d like to put resources in their own folder, etc. I looked through some of the compiler help, but alas I am too incompetent to find the solution. I know it''s possible - could some kind developer clue me in on how to do it? Thanks so much in advance. G

Share this post


Link to post
Share on other sites
For VC++, you can add files from whenever you want. In general, however, it is not worth it to fight the IDE on this. Just accept the defaults, and your life will be much happier.



AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.

Share this post


Link to post
Share on other sites
Thanks, but I''d really like to fight the IDE on this one. I''d be very grateful if someone could give me step by step directions (like which menu to pull down, etc.) if they know how it''s done. Thanks for the suggestion though - I''m obviously having a struggle with Visual Studio at the current moment

Share this post


Link to post
Share on other sites
For VC 6, open the Workspace window, click the FileView tab at the bottom, right click any folder and Add Files to Folder...

If at a later time you want to change a file location (but not name, you can''t do that), you can right click a file, properties, and enter the new file path. But don''t use this method much unless you are desperate... best to remove and add files instead of manually fiddling with the path.

Share this post


Link to post
Share on other sites
Thanks - I figured I was an idiot. I created the files in the project folder (defaulted there by compiler), and then moved them, and I never tried to re-add them when the compiler couldn''t find them, which definitely works. Thanks a lot.

G

Share this post


Link to post
Share on other sites