Click here to Skip to main content
15,924,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SuspendThread question Pin
whizano20-Jan-06 19:30
whizano20-Jan-06 19:30 
Questionhow can i change the background color of selected listctrl item Pin
baldha rakesh20-Jan-06 17:50
baldha rakesh20-Jan-06 17:50 
AnswerRe: how can i change the background color of selected listctrl item Pin
Stephen Hewitt20-Jan-06 19:50
Stephen Hewitt20-Jan-06 19:50 
QuestionSimple C++ Error... Please Help Pin
Joshua N20-Jan-06 15:42
Joshua N20-Jan-06 15:42 
AnswerRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 16:06
professionalGarth J Lancaster20-Jan-06 16:06 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N20-Jan-06 21:54
Joshua N20-Jan-06 21:54 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 23:33
professionalGarth J Lancaster20-Jan-06 23:33 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 0:03
professionalGarth J Lancaster21-Jan-06 0:03 
still not exactely sure how your project is set up (did you use a wizard ?), but if I have

#include "stdafx.h"
#include <iostream>

int main(int argc, char* argv[])
{
std::cout << "now is the time\n" ;
return 0;
}

I dont have any issues ..

If you're not generating your project using a wizard, it can get very hard getting all the settings right, so start by creating your projects with the 'wizard'...

so try this

shut down VS .NET, then start it up to get a clean slate
select file, new, projects, Win32 Console Application
set a location, give the project a name eg test1
instruct the wizard to create a "Simple Application"
Then select the fileview tab, source file, test1.cpp

edit test1.cpp to look like mine, build it (F7), it should compile cleanly, then CTRL+F5 to run it ..

I often think its hard on win32 to learn this, because you have a complicated IDE to master as well - I learnt on Unix and to some extend, it was easier

see how you go with that ..

note the std:: in front of the cout - its because within iostream library, its exporting the 'cout' into what's known as a 'namespace' - so to reference it, you need the std:: (there is another way around this, lets walk before we can run)

'g'
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 6:45
Joshua N21-Jan-06 6:45 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 12:19
professionalGarth J Lancaster21-Jan-06 12:19 
GeneralRe: Simple C++ Error... Please Help Pin
RadioOpa21-Jan-06 10:25
RadioOpa21-Jan-06 10:25 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 11:41
Joshua N21-Jan-06 11:41 
GeneralRe: Simple C++ Error... Please Help Pin
waxie22-Jan-06 17:30
waxie22-Jan-06 17:30 
AnswerRe: Simple C++ Error... Please Help Pin
Dr Dan22-Jan-06 10:02
Dr Dan22-Jan-06 10:02 
QuestionDatabase connection in .NET Pin
Jordan C. Atlas20-Jan-06 15:41
Jordan C. Atlas20-Jan-06 15:41 
AnswerRe: Database connection in .NET Pin
Ed K21-Jan-06 13:01
Ed K21-Jan-06 13:01 
GeneralRe: Database connection in .NET Pin
Jordan C. Atlas21-Jan-06 13:36
Jordan C. Atlas21-Jan-06 13:36 
QuestionHow to use code coverage in VC 2005? Pin
Azbok20-Jan-06 15:25
Azbok20-Jan-06 15:25 
QuestionNewbie question - data storage Pin
ruzu20-Jan-06 14:57
ruzu20-Jan-06 14:57 
AnswerRe: Newbie question - data storage Pin
Stephen Hewitt20-Jan-06 15:07
Stephen Hewitt20-Jan-06 15:07 
GeneralRe: Newbie question - data storage Pin
ruzu21-Jan-06 3:13
ruzu21-Jan-06 3:13 
AnswerRe: Newbie question - data storage Pin
Lilith.C21-Jan-06 4:19
Lilith.C21-Jan-06 4:19 
GeneralRe: Newbie question - data storage Pin
ruzu21-Jan-06 5:21
ruzu21-Jan-06 5:21 
GeneralRe: Newbie question - data storage Pin
Stephen Hewitt21-Jan-06 17:36
Stephen Hewitt21-Jan-06 17:36 
QuestionRe: Newbie question - data storage Pin
Lilith.C20-Jan-06 16:59
Lilith.C20-Jan-06 16:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.