| rd3 (6) | |
|
Hi I am interested in programming. On the code side of things I am perfectly happy: I have a very small amount of experience with Small Basic and I am willing to work hard to learn. It's the IDE or compiler, or whatever it is (Visual C++ Express, hence the title) that has confused me. When I tried to write a very simple program (Hello World, mentioned in the tutorial on this site) and run it a window popped up and said: "This project is out of date - Debug Win32 - would you like to build it?". I clicked "Yes" but then a new window appeared, saying "Unable to start program". Is it that I am being a bit of a newbie?? Can anybody give me any advice about my future in C++ programming also maybe?? Thank you for any answers I might recieve!!! | |
|
Last edited on
|
|
| Moschops (5961) | |
| Get a simpler IDE. Even better, don't use an IDE to begin with. Write your code using a text editor. Compile it from the command line. | |
|
|
|
| pnoid (11) | |
| Build an empty project, not a win32 project. Then you won't get those errors. | |
|
|
|
| rd3 (6) | |
| Ok thanks but how would I compile it from the command line?? And what do you mean by a text editor, is Microsoft Office Word one? | |
|
|
|
| Moschops (5961) | |||
I would do it like this:
How you do it will depend on your compiler.
It is, but it's a bloody awful one. | |||
|
Last edited on
|
|||
| rd3 (6) | |
| I have tried to build an empty project, it still failed to work. Does it matter what kind of file I create? | |
|
|
|
| rd3 (6) | |
| What text editor would you reccomend?? | |
|
|
|
| Gaminic (1541) | |
|
MSVC Express is a great starting IDE. It's easy to use and doesn't have too much advanced stuff popping up. To create a basic program, do this: -File->New->Project. -Left side: "Visual C++ -> General", right side: "Empty project". Enter a name at the bottom; ignore solution name. Now, you'll have a blank screen (just the blue VC background), but on the left side you should see "Solution Explorer". In Solution Explorer, you'll see the following: Solution '<name>', followed by <name> which can be expanded. When it's expanded, you'll see 4 map icons. On of them is titled "Source Files". Right-click it, "Add" -> "New item". On the next screen, select "C++ file (.cpp)". Name it "test.cpp" or something. You'll get a blank file. In that file, type your code, press F7 (build) and F5 (run/debug). | |
|
|
|
| codekiddy (602) | |||
I would recommend you to take few houres reading into this starting site:
Most notable for C++ is this one:
You have plenty of videos to start using the Visual studio :) | |||
|
Last edited on
|
|||
| rd3 (6) | |
|
Gaminic, I tried to do that but the same thing happened. What does MSVC stand for. It's not Visual C++ Express 2010 is it because when I googled it thats what came up. Thanks everyone!! Also, Moschops, where would I type "g++ sourceFile.cpp"? | |
|
|
|
| Gaminic (1541) | |
| It's, it's Microsoft Visual C++ Express (any version). Maybe you messed up the installation? Try reinstalling it. | |
|
|
|
| Moschops (5961) | ||
Into the command line. | ||
|
|
||
| modoran (1101) | |
| You type g++, but want to use Microsoft compiler ??????????????????? | |
|
|
|