Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Redrawing lines draw by a user Pin
en9ap11-Feb-09 4:39
en9ap11-Feb-09 4:39 
QuestionToggling highlighting through a CListCtrl in the correct order Pin
Sternocera10-Feb-09 6:01
Sternocera10-Feb-09 6:01 
QuestionHow can i modify my picture control to automatically draw line? Pin
z01e10-Feb-09 5:50
z01e10-Feb-09 5:50 
QuestionBack to basics; just started learnin C++ Pin
EliottA10-Feb-09 5:46
EliottA10-Feb-09 5:46 
AnswerRe: Back to basics; just started learnin C++ Pin
prasad_som10-Feb-09 6:39
prasad_som10-Feb-09 6:39 
AnswerRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 7:24
Eytukan10-Feb-09 7:24 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 7:32
EliottA10-Feb-09 7:32 
GeneralRe: Back to basics; just started learnin C++ Pin
toxcct10-Feb-09 7:51
toxcct10-Feb-09 7:51 
this is because you might have started a project from a template or something.

just deactivate the precompiled headers in the compiler settings to have this error disappeard.

BTW, be careful. #include is with a small i, not #Include.
Moreover, you should prefer using iostream (without .h) header.

also, you code won't work for some other reasons.

cout won't be found in the global namespace. just prepend it with std::.

and main is a function, so you have to give it a pair or parenthesis:

#include <iostream>
 
void main() {
    std::cout << "Hello World !";
}



GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 7:52
EliottA10-Feb-09 7:52 
GeneralRe: Back to basics; just started learnin C++ Pin
toxcct10-Feb-09 7:58
toxcct10-Feb-09 7:58 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 8:01
EliottA10-Feb-09 8:01 
GeneralRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 8:31
Eytukan10-Feb-09 8:31 
GeneralRe: Back to basics; just started learnin C++ Pin
EliottA10-Feb-09 8:33
EliottA10-Feb-09 8:33 
GeneralRe: Back to basics; just started learnin C++ Pin
Eytukan10-Feb-09 8:37
Eytukan10-Feb-09 8:37 
QuestionVisual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Desmond Mardle10-Feb-09 5:44
Desmond Mardle10-Feb-09 5:44 
AnswerRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
prasad_som10-Feb-09 6:41
prasad_som10-Feb-09 6:41 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Desmond Mardle10-Feb-09 7:32
Desmond Mardle10-Feb-09 7:32 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Niklas L10-Feb-09 21:21
Niklas L10-Feb-09 21:21 
GeneralRe: Visual Studio 2008 Lost Class View of XXXview and a couple of other classes. Pin
Desmond Mardle10-Feb-09 23:16
Desmond Mardle10-Feb-09 23:16 
QuestionDumping the call stack to a log at runtime Pin
Code-o-mat10-Feb-09 5:25
Code-o-mat10-Feb-09 5:25 
AnswerRe: Dumping the call stack to a log at runtime Pin
Stuart Dootson10-Feb-09 6:44
professionalStuart Dootson10-Feb-09 6:44 
GeneralRe: Dumping the call stack to a log at runtime Pin
Code-o-mat10-Feb-09 6:46
Code-o-mat10-Feb-09 6:46 
QuestionCalling global function causing linking error. Pin
Comp_Users10-Feb-09 2:53
Comp_Users10-Feb-09 2:53 
QuestionRe: Calling global function causing linking error. Pin
prasad_som10-Feb-09 3:34
prasad_som10-Feb-09 3:34 
AnswerRe: Calling global function causing linking error. Pin
Comp_Users10-Feb-09 3:40
Comp_Users10-Feb-09 3:40 

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.