Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Visual C++ 2008 Questions (http://www.programmingforums.org/showthread.php?t=15374)

KuraKai Mar 8th, 2008 7:22 PM

Visual C++ 2008 Questions
 
I was wanting to know what properties will i need to change for a project to have it's files in another location then where the necessary "Visual Studio" project files are located. I have another folder that has sub folders for each project, and all of this is going to a SVN Code Repository that is being hosted elsewhere. But I want to keep out all the "junk" that is created from Visual Studio.

Ancient Dragon Mar 8th, 2008 8:09 PM

Re: Visual C++ 2008 Questions
 
The way I have done it is to first create a project with no files (empty project). Then in Solution Explorer right click <project nanme> --> Source Files, select Add --> Existing Item. Navigate to where the source files are, select all the files you want to add, then click the Add button.

Do the same for the header files. You may have to leave precompiled headers disabled, I've not been able to get that to work when the source files are in a different location.

KuraKai Mar 8th, 2008 8:14 PM

Re: Visual C++ 2008 Questions
 
Is there way to set the folder to where you create files? I guess you can do it like that but what if I wanted to create a file, I would like it to just be created in this new folder.

Ancient Dragon Mar 8th, 2008 8:16 PM

Re: Visual C++ 2008 Questions
 
when you save the file just do "Save As" and specifiy the full path to the folder. As far as I know there is no other way to do it.

wannabe7 Mar 15th, 2008 10:17 PM

Re: Visual C++ 2008 Questions
 
hey I was thinking about switching over to Visual C++ from Dev-C++. I feel like doing it because it seems as though Dev has a lot of strange things about it:
1. Some programs from tuts and self-teach books do not run on Dev error free.
2. It doesn't explain errors well (for example, when I forget to add ";" to a line, Dev makes the error go on the next line).
3. Visual looks really nice.

I'm just wondering if switching compilers is a wise decision? An important decision?

Off topic: This forum seems much more informed and much more modest than Daniweb. Just IMO.

Ooble Mar 15th, 2008 10:19 PM

Re: Visual C++ 2008 Questions
 
Dev-C++ hasn't been updated in approximately forever. Check out Code::Blocks - basically the same thing, but much, much newer.

Ancient Dragon Mar 15th, 2008 10:23 PM

Re: Visual C++ 2008 Questions
 
You don't have to choose one over the other -- you can have both installed on the same computer, assuming you have enought disk space. I like VC++ 2008 Express better, but I've been using Microsoft compilers for a lot of years and know the IDEs pretty well. VC++ has a much better debugger, never figured out out how to use Dev-C++'s debugger. But if you are looking for portability between Windows and *nix then Dev-C++ is a definite plus because it uses the same backend compiler that most *nix machines use so there is little, if any, code porting to get the program to compile on both operating systems.

wannabe7 Mar 15th, 2008 10:54 PM

Re: Visual C++ 2008 Questions
 
Thank you guys, very inciteful posts. I will DL VSC++ and see if its really what it's cracked up to be. :)

Jabo Mar 16th, 2008 3:48 AM

Re: Visual C++ 2008 Questions
 
Microsoft has very good documentation also, another big plus in my book.

Ancient Dragon Mar 16th, 2008 6:55 AM

Re: Visual C++ 2008 Questions
 
Quote:

Originally Posted by Jabo (Post 142556)
Microsoft has very good documentation also, another big plus in my book.

Good -- but not always accurate :) Its a lot better now than it was 10-15 years ago. Way back then there were lots of mistakes in it but I think they've pretty much cleaned up their act now.


All times are GMT -5. The time now is 3:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC