Click here to Skip to main content
15,918,211 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help Pin
Christian Graus27-Oct-02 15:04
protectorChristian Graus27-Oct-02 15:04 
GeneralA notepad-like class... Pin
Mr.Freeze27-Oct-02 14:27
Mr.Freeze27-Oct-02 14:27 
GeneralRe: A notepad-like class... Pin
Christian Graus27-Oct-02 14:46
protectorChristian Graus27-Oct-02 14:46 
GeneralRe: A notepad-like class... Pin
Mr.Freeze27-Oct-02 17:10
Mr.Freeze27-Oct-02 17:10 
Generalstupid beginner Pin
Anonymous27-Oct-02 13:33
Anonymous27-Oct-02 13:33 
GeneralRe: stupid beginner Pin
Maximilien27-Oct-02 13:59
Maximilien27-Oct-02 13:59 
GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 14:05
Anonymous27-Oct-02 14:05 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 14:21
protectorChristian Graus27-Oct-02 14:21 
As he said, your compiler is set to use precompiled headers, which means that every other file MUST include stdafx.h, and when it does not, the compiler complains, as it has done. You can go into the options and turn off precompiled headers, but if you don't, you need the line.

iostream.h is also wrong. It's not part of standard C++, and has been replaced with iostream. Here is a hello world that uses standard C++:

#include "stdafx.h" // if using precompiled headers
#include <iostream>

using std::cout;

int main()
{
cout << "Hello, world";
return 0;
}



Christian

<i>No offense, but I don't really want to encourage the creation of another VB developer.</i> - <b>Larry Antram 22 Oct 2002</b>

<i>Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that...</i> - <b>Shog9 04-09-2002</b>

<i>During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. </i> - <B>Alex E. - 12-Sept-2002</B>

GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 17:32
Anonymous27-Oct-02 17:32 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 17:34
protectorChristian Graus27-Oct-02 17:34 
GeneralEnableToolTips for view (doc/view) affects main toolbar tooltips!? :\ Pin
Janeko27-Oct-02 12:59
Janeko27-Oct-02 12:59 
GeneralCDockContext Pin
MaTrIX2k227-Oct-02 11:50
MaTrIX2k227-Oct-02 11:50 
Generalconsole app disappearing VS.NET Pin
User 814727-Oct-02 11:02
User 814727-Oct-02 11:02 
GeneralListBox Characteristics Pin
Ayush27-Oct-02 9:03
Ayush27-Oct-02 9:03 
GeneralRe: ListBox Characteristics Pin
Ravi Bhavnani27-Oct-02 9:36
professionalRavi Bhavnani27-Oct-02 9:36 
QuestionHow it Possible.? Pin
Renjith Ramachandran27-Oct-02 7:01
Renjith Ramachandran27-Oct-02 7:01 
Generalproblems with changing list items' image icon Pin
Matias27-Oct-02 6:29
Matias27-Oct-02 6:29 
GeneralRe: problems with changing list items' image icon Pin
Chris Losinger27-Oct-02 7:00
professionalChris Losinger27-Oct-02 7:00 
GeneralRe: problems with changing list items' image icon Pin
Matias27-Oct-02 7:06
Matias27-Oct-02 7:06 
GeneralRe: problems with changing list items' image icon Pin
peterchen27-Oct-02 7:29
peterchen27-Oct-02 7:29 
GeneralRe: problems with changing list items' image icon Pin
Matias27-Oct-02 7:39
Matias27-Oct-02 7:39 
Questionfor (; !Free; ) ; ???? Pin
tongc27-Oct-02 5:51
tongc27-Oct-02 5:51 
AnswerRe: for (; !Free; ) ; ???? Pin
Chris Losinger27-Oct-02 6:25
professionalChris Losinger27-Oct-02 6:25 
AnswerRe: for (; !Free; ) ; ???? Pin
Joaquín M López Muñoz27-Oct-02 10:56
Joaquín M López Muñoz27-Oct-02 10:56 
GeneralRe: for (; !Free; ) ; ???? Pin
tongc27-Oct-02 11:18
tongc27-Oct-02 11:18 

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.