![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 20
Rep Power: 0
![]() |
Visual C++
I have been learning c++ with Dev-cpp for some time and I recently attempted using Visual C++ (Express Edition). Visual C++ seems far more complicated. In Dev-cpp all I had to do to compile a source file was click 'compile' in the toolbar and it neatly placed a .exe file where I told it to.
However, using VC++ I have run into a bunch of terms like, 'build', 'link', 'projectsheet', 'release build' etc etc. And really I can barely get a HelloWorld app to run. Can anybody point me to some helpful websites written for VC noobies? |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
functionx.com is pretty good
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Of course you searched first and found many tutorial sites already. Right?
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
As a shortcut, I just click the 'Run' button. If compilation or any other step is needed, it's taken. If there are errors, it doesn't run, of course, but there the errors are: displayed.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
@ the OP: Are you trying to create a console application or a windowed application? If it's a windowed one, are you using the Win32 API or something else? |
|
|
|
|
|
|
#6 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
@OP: Anyway, if you use VC++ 2005, then you need to create a project, a win32 console project, make it an empty project. Then create a .cpp source file. Add it on your solution explorer under "source files". Open the .cpp file and type: include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}Well that's it, save it. And go to the build menu and select build project. Then go to the debug menu and select "run without debugging". Voila done, you can also specify release or debug under "configuration" in your build menu. A build does a compile and a link. You should read up on how that works, it will be an invaluable lesson.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#7 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#8 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
With Visual C++, you have to create a project to compile something. The type of project you compile depends on what you're trying to do. But then, you knew that.
![]() |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Mar 2006
Posts: 20
Rep Power: 0
![]() |
I did search the forums actually, and I only looked briefly but there wasn't anything...Anyway, I had
figured out to compile a Win32 console app, but Im really just confused by the different terms and procedures used to compile things with VC compared to Dev-cpp. My Main Question was, has anyone knowledge of a website that deals with using VS, for newbies, having tutorials, etc. Cplusplus.com , cprogramming.org etc all have fine tuts on C and C++, but nowhere have I heard the term 'release version', nowhere have I encountered a tutorial or book that asks me to 'build' Projects. Google did turn up many many non helpful results, so yeah.... Im still open to suggestions... |
|
|
|
|
|
#10 | |||
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I only use the help documentation that came with it. Admittedly, I've been using IDEs for dog's years. Here's a sample of a fairly large amount of information brought up by 'release':
Quote:
Quote:
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|