Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extended MAPI Pin
David Crow12-Jun-03 2:33
David Crow12-Jun-03 2:33 
GeneralRe: Extended MAPI Pin
David Crow12-Jun-03 10:49
David Crow12-Jun-03 10:49 
GeneralRe: Extended MAPI Pin
Valeria Bogdevich12-Jun-03 11:25
Valeria Bogdevich12-Jun-03 11:25 
GeneralRe: Extended MAPI Pin
David Crow13-Jun-03 2:25
David Crow13-Jun-03 2:25 
GeneralRe: Extended MAPI Pin
Valeria Bogdevich13-Jun-03 2:54
Valeria Bogdevich13-Jun-03 2:54 
GeneralCRichEditCtrl slowing down my application Pin
Manfred Staiger11-Jun-03 4:08
Manfred Staiger11-Jun-03 4:08 
GeneralRe: CRichEditCtrl slowing down my application Pin
John M. Drescher11-Jun-03 4:15
John M. Drescher11-Jun-03 4:15 
GeneralCompile problem Pin
Roger Allen11-Jun-03 4:03
Roger Allen11-Jun-03 4:03 
I have a problem I have been scratching my head on for a few hours now. I have a class in a project which has not changed in 6 months, but when I came to build the whole project this morning I got about 22 errors in it to do with some friend functions for serialzation trying to access a protected member variable.

	// serialization
#ifdef _DEBUG
	friend CDumpContext& AFXAPI operator<<(CDumpContext& dc, CGoodTime time);
#endif
	friend CArchive& AFXAPI operator<<(CArchive& ar, CGoodTime time);
	friend CArchive& AFXAPI operator>>(CArchive& ar, CGoodTime& rtime);
#pragma message("    GoodTime.h")
protected:
   void SetDays( tm *ptm );

private:
	tm m_time;
};


The actual implemenations of these functions throw up the compile errors. Now I have added in a #pragma message command to make sure the correct header is being used, and it is. So the next thing I tried was the compiler /P option to get a copy of the output that goes into the compiler, needless to say with the /P option it compiles without any problems, remove /P and they come back.

Any ideas why this should be so?

Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralRe: Compile problem Pin
David Crow11-Jun-03 4:28
David Crow11-Jun-03 4:28 
GeneralRe: Compile problem Pin
Roger Allen11-Jun-03 4:43
Roger Allen11-Jun-03 4:43 
GeneralRe: Compile problem Pin
David Crow11-Jun-03 4:48
David Crow11-Jun-03 4:48 
GeneralRe: Compile problem Pin
Roger Allen11-Jun-03 5:14
Roger Allen11-Jun-03 5:14 
QuestionHow to run these codes? Pin
FlyingDancer11-Jun-03 4:00
FlyingDancer11-Jun-03 4:00 
AnswerRe: How to run these codes? Pin
John M. Drescher11-Jun-03 4:10
John M. Drescher11-Jun-03 4:10 
AnswerRe: How to run these codes? Pin
David Crow11-Jun-03 4:30
David Crow11-Jun-03 4:30 
GeneralRe: How to run these codes? Pin
FlyingDancer11-Jun-03 13:52
FlyingDancer11-Jun-03 13:52 
GeneralRe: How to run these codes? Pin
David Crow12-Jun-03 2:35
David Crow12-Jun-03 2:35 
GeneralRe: How to run these codes? Pin
FlyingDancer12-Jun-03 3:08
FlyingDancer12-Jun-03 3:08 
GeneralRegistry problems Pin
rohit.dhamija11-Jun-03 3:42
rohit.dhamija11-Jun-03 3:42 
QuestionWhat is the XP Accessibility Wizard doing? Pin
mcgahanfl11-Jun-03 3:36
mcgahanfl11-Jun-03 3:36 
QuestionHow can I create and post a web page Pin
gordingin11-Jun-03 3:28
gordingin11-Jun-03 3:28 
Generalproblem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 3:21
Luis E. Cuadrado11-Jun-03 3:21 
GeneralRe: problem using CDialog::Create, assert error Pin
Tim Smith11-Jun-03 3:36
Tim Smith11-Jun-03 3:36 
GeneralRe: problem using CDialog::Create, assert error Pin
David Crow11-Jun-03 3:44
David Crow11-Jun-03 3:44 
GeneralRe: problem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 4:13
Luis E. Cuadrado11-Jun-03 4:13 

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.