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

C / C++ / MFC

 
GeneralRe: A discussion on books Pin
jhwurmbach9-Aug-07 22:26
jhwurmbach9-Aug-07 22:26 
GeneralRe: A discussion on books Pin
Nelek9-Aug-07 22:33
protectorNelek9-Aug-07 22:33 
GeneralRe: A discussion on books Pin
jhwurmbach9-Aug-07 22:40
jhwurmbach9-Aug-07 22:40 
AnswerRe: A discussion on books Pin
jhwurmbach9-Aug-07 22:23
jhwurmbach9-Aug-07 22:23 
GeneralRe: A discussion on books Pin
Vaclav_10-Aug-07 4:21
Vaclav_10-Aug-07 4:21 
QuestionMaking a class non derivable Pin
tom groezer9-Aug-07 11:00
tom groezer9-Aug-07 11:00 
AnswerRe: Making a class non derivable Pin
prasad_som9-Aug-07 22:52
prasad_som9-Aug-07 22:52 
AnswerRe: Making a class non derivable Pin
«_Superman_»9-Aug-07 23:22
professional«_Superman_»9-Aug-07 23:22 
There are two principles involved.

1. A friend class can access all members of the host class including private members. So Fred class will be able to access the constructor of FredBase.

2. The constructor of a virtual base class (FredBase) is always called by the most derived class. So if a new class is being derived from Fred, that new class will be the one calling the constructor of FredBase. This will fail as the constructor is private.

The error can be seen only when an object of the newly derived class is created as that is where the constructor call happens.

« Superman »

QuestionOperator functions. Pin
tom groezer9-Aug-07 10:58
tom groezer9-Aug-07 10:58 
AnswerRe: Operator functions. Pin
Mark Salsbery9-Aug-07 12:25
Mark Salsbery9-Aug-07 12:25 
AnswerRe: Operator functions. Pin
jhwurmbach9-Aug-07 22:27
jhwurmbach9-Aug-07 22:27 
Question[Message Deleted] Pin
Vaclav_9-Aug-07 10:01
Vaclav_9-Aug-07 10:01 
AnswerRe: MFC - gallery and Add to project - missing virtuals Pin
Mark Salsbery9-Aug-07 12:38
Mark Salsbery9-Aug-07 12:38 
General[Message Deleted] Pin
Vaclav_9-Aug-07 17:45
Vaclav_9-Aug-07 17:45 
GeneralRe: MFC - gallery and Add to project - missing virtuals Pin
Nelek9-Aug-07 20:20
protectorNelek9-Aug-07 20:20 
GeneralRe: MFC - gallery and Add to project - missing virtuals Pin
jhwurmbach9-Aug-07 22:47
jhwurmbach9-Aug-07 22:47 
GeneralRe: MFC - gallery and Add to project - missing virtuals Pin
jhwurmbach10-Aug-07 3:53
jhwurmbach10-Aug-07 3:53 
AnswerRe: MFC - gallery and Add to project - missing virtuals [modified] Pin
Nelek13-Aug-07 21:19
protectorNelek13-Aug-07 21:19 
QuestionGetting program directory Pin
hxhl959-Aug-07 9:25
hxhl959-Aug-07 9:25 
AnswerRe: Getting program directory Pin
Chris Losinger9-Aug-07 9:34
professionalChris Losinger9-Aug-07 9:34 
QuestionRe: Getting program directory Pin
hxhl959-Aug-07 11:01
hxhl959-Aug-07 11:01 
AnswerRe: Getting program directory Pin
Chris Losinger9-Aug-07 11:07
professionalChris Losinger9-Aug-07 11:07 
AnswerRe: Getting program directory Pin
David Crow10-Aug-07 2:57
David Crow10-Aug-07 2:57 
QuestionRe: Getting program directory Pin
hxhl9510-Aug-07 12:25
hxhl9510-Aug-07 12:25 
AnswerRe: Getting program directory Pin
David Crow11-Aug-07 6:35
David Crow11-Aug-07 6:35 

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.