Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuick Question on STL vector iterator Pin
Sebastian Schneider11-Jan-06 22:00
Sebastian Schneider11-Jan-06 22:00 
AnswerRe: Quick Question on STL vector iterator Pin
Cedric Moonen11-Jan-06 22:15
Cedric Moonen11-Jan-06 22:15 
GeneralRe: Quick Question on STL vector iterator Pin
toxcct11-Jan-06 22:27
toxcct11-Jan-06 22:27 
GeneralRe: Quick Question on STL vector iterator Pin
Sebastian Schneider11-Jan-06 22:38
Sebastian Schneider11-Jan-06 22:38 
AnswerRe: Quick Question on STL vector iterator Pin
Stephen Hewitt11-Jan-06 22:55
Stephen Hewitt11-Jan-06 22:55 
QuestionUnexpected end of file while looking for precompiled header directive Pin
Sarvan AL11-Jan-06 21:54
Sarvan AL11-Jan-06 21:54 
AnswerRe: Unexpected end of file while looking for precompiled header directive Pin
Sebastian Schneider11-Jan-06 22:02
Sebastian Schneider11-Jan-06 22:02 
AnswerRe: Unexpected end of file while looking for precompiled header directive Pin
PJ Arends11-Jan-06 22:07
professionalPJ Arends11-Jan-06 22:07 
Sarvan AL wrote:
I am getting the error "fatal error: unexpected end of file while looking for precompiled header directive". But If I add "#include "stdafx.h" in Person.cpp, I get another error "CPerson: class type redefinition"


To solve the first error you have to #include "stdafx.h". To solve the second error place a #pragma once at the top of every one of your .h header files. What is happening now is that the compiler is including person.h multiple times so it is finding multiple definitions of class CPerson.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
GeneralRe: Unexpected end of file while looking for precompiled header directive Pin
<color>Aljechin 11-Jan-06 22:51
<color>Aljechin 11-Jan-06 22:51 
GeneralRe: Global Variable in all the files Pin
Sarvan AL12-Jan-06 0:29
Sarvan AL12-Jan-06 0:29 
GeneralRe: Global Variable in all the files Pin
<color>Aljechin 12-Jan-06 0:49
<color>Aljechin 12-Jan-06 0:49 
GeneralRe: Global Variable in all the files Pin
<color>Aljechin 12-Jan-06 0:55
<color>Aljechin 12-Jan-06 0:55 
GeneralRe: Global Variable in all the files Pin
Blake Miller12-Jan-06 6:47
Blake Miller12-Jan-06 6:47 
GeneralRe: Global Variable in all the files Pin
<color>Aljechin 12-Jan-06 17:54
<color>Aljechin 12-Jan-06 17:54 
GeneralRe: Global Variable in all the files Pin
Blake Miller13-Jan-06 7:03
Blake Miller13-Jan-06 7:03 
GeneralThanks: Unexpected end of file while looking for precompiled header directive Pin
Sarvan AL12-Jan-06 0:36
Sarvan AL12-Jan-06 0:36 
QuestionCommunication Between EXEs Pin
rider cool11-Jan-06 21:48
rider cool11-Jan-06 21:48 
AnswerRe: Communication Between EXEs Pin
PJ Arends11-Jan-06 21:58
professionalPJ Arends11-Jan-06 21:58 
QuestionCreate Font to match Dialogue Box Pin
LittleYellowBird11-Jan-06 21:17
LittleYellowBird11-Jan-06 21:17 
AnswerRe: Create Font to match Dialogue Box Pin
Owner drawn11-Jan-06 21:51
Owner drawn11-Jan-06 21:51 
GeneralRe: Create Font to match Dialogue Box Pin
LittleYellowBird12-Jan-06 4:32
LittleYellowBird12-Jan-06 4:32 
QuestionFunction as argument Pin
kk.tvm11-Jan-06 20:35
kk.tvm11-Jan-06 20:35 
AnswerRe: Function as argument Pin
Owner drawn11-Jan-06 20:44
Owner drawn11-Jan-06 20:44 
AnswerRe: Function as argument Pin
Zdeslav Vojkovic11-Jan-06 20:47
Zdeslav Vojkovic11-Jan-06 20:47 
AnswerRe: Function as argument Pin
Cedric Moonen11-Jan-06 20:48
Cedric Moonen11-Jan-06 20:48 

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.