Archived

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

Geronimo2000

Visual Studio source folder

Recommended Posts

This is a simple problem, but after spending over an hour trying to get Visual Studio to accept a different directory for source files, I finally gave up. Could somebody please let me know how I can specify a relative and/or explicit path name for my source files. I''m using 6.0 and .NET right now so any help for either would be great. Thanks a lot. G

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
AFAIK normal relative pathnames work here.
So, if you want to refer to project''s parent dir for example, use
../

and current project dir as
./

Works for me!
-N

Share this post


Link to post
Share on other sites
Hey, thanks a lot. Could you direct me to the area where I can type it in, and an example of how you would type out a subfolder in the project directory called ''Source'' for example, so I can know if I''m crazy or not. I''ve tried tools/options/directories/source, and I''ve tried project/settings/c++/preprocessor. I suppose I haven''t found the right setting yet? Thanks for you help.

G

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I think there is no way

you add .cpp files to your project

you can add additional include and lib dirs thats all
so you dont have to say #include "..\..\..\file.h"
you can just put #include <file.h>

Share this post


Link to post
Share on other sites