Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Vaclav_Sal wrote:
If you build a new view class in MFC you end up with missing pieces - no GetDocument is a prime example. Private constructor and destructor other hindrance.

I thought this was the way it's always been. 

GetDocument() is already declared/defined in the base class. There's no reason for
your derived class to have another one.

Constructor/destructor are private because views aren't meant to be created
directly.

Welcome to MFC Doc/View Smile | :)   If you follow the rules, it works fine.
For custom functionality, study the MFC source code carefully!

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
Questionconversion operator ??? Plz help ......... Pin
Zealous_Me9-Aug-07 7:37
Zealous_Me9-Aug-07 7:37 
AnswerRe: conversion operator ??? Plz help ......... Pin
led mike9-Aug-07 8:08
led mike9-Aug-07 8:08 
GeneralRe: conversion operator ??? Plz help ......... Pin
Zealous_Me9-Aug-07 8:32
Zealous_Me9-Aug-07 8:32 
GeneralRe: conversion operator ??? Plz help ......... Pin
led mike9-Aug-07 9:08
led mike9-Aug-07 9:08 
GeneralRe: conversion operator ??? Plz help ......... Pin
Zealous_Me10-Aug-07 8:57
Zealous_Me10-Aug-07 8:57 

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.