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

C / C++ / MFC

 
GeneralRe: Is Visual C++ 2005 a lot better than VC++ 2003 ? Pin
Cedric Moonen11-Jan-06 22:56
Cedric Moonen11-Jan-06 22:56 
AnswerRe: Is Visual C++ 2005 a lot better than VC++ 2003 ? Pin
Rob Caldecott11-Jan-06 23:06
Rob Caldecott11-Jan-06 23:06 
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 
I have 2 classes, CPerson and CPersonDlg. Look at their relationship:
Person.h
--------
#include "PersonDlg.h"

class CPerson
{
...
public:
friend class CPersonDlg ;
...
} ;

PersonDlg.h
-----------
#include "Person.h"

class CPersonDlg
{
...
public:
CPerson m_pers ;
...
} ;
Person.cpp
----------
#include "Person.h"
....
...
PersonDlg.cpp
-------------
#include "PersonDlg.h"
...
...

PROBLEM
=======
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"

Pls suggest me a solution.

Thanks in advance

Sarvan AL



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 
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 

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.