Click here to Skip to main content
15,885,044 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEmpty messages from MFC Pin
Daniel 'Tak' M.28-Jan-11 13:16
Daniel 'Tak' M.28-Jan-11 13:16 
AnswerRe: Empty messages from MFC Pin
Hans Dietrich28-Jan-11 16:53
mentorHans Dietrich28-Jan-11 16:53 
GeneralRe: Empty messages from MFC Pin
Daniel 'Tak' M.31-Jan-11 4:10
Daniel 'Tak' M.31-Jan-11 4:10 
AnswerRe: Empty messages from MFC Pin
Richard MacCutchan28-Jan-11 21:21
mveRichard MacCutchan28-Jan-11 21:21 
AnswerRe: Empty messages from MFC Pin
Stephen Hewitt30-Jan-11 15:43
Stephen Hewitt30-Jan-11 15:43 
GeneralRe: Empty messages from MFC Pin
Daniel 'Tak' M.31-Jan-11 4:17
Daniel 'Tak' M.31-Jan-11 4:17 
GeneralRe: Empty messages from MFC Pin
Hans Dietrich31-Jan-11 4:21
mentorHans Dietrich31-Jan-11 4:21 
QuestionName for a hosting class - Just looking for some naming ideas Pin
bob1697228-Jan-11 4:37
bob1697228-Jan-11 4:37 
- Consider a class that is used as a utility by many of your classes.
- The classes that can use it (I'm calling it the host or parent class for now) must, derive from some abstract base class .
- When you instantiate the utility class, the constructor takes a reference to the host or parent class so it can call the base class methods the hosts are required to implement. This reference is stored as a member in the utility class object instance.
(NOTE: lifetime issues are taken care of properly since the utility class object is a member of the host but that is unrelated)

What do you refer to this member variable (reference) for the hosting class as?

I've been using...
m_parent
m_host

However, I'm wondering if these don't convey the relationship properly.
What terms do some of you use for such a relationship?
AnswerRe: Name for a hosting class - Just looking for some naming ideas Pin
Code-o-mat28-Jan-11 4:44
Code-o-mat28-Jan-11 4:44 
GeneralRe: Name for a hosting class - Just looking for some naming ideas Pin
bob1697229-Jan-11 13:50
bob1697229-Jan-11 13:50 
JokeRe: Name for a hosting class - Just looking for some naming ideas Pin
Code-o-mat29-Jan-11 22:47
Code-o-mat29-Jan-11 22:47 
QuestionVisual Studio Add-In for checking if file is up-to-date Pin
Code-o-mat28-Jan-11 3:26
Code-o-mat28-Jan-11 3:26 
AnswerRe: Visual Studio Add-In for checking if file is up-to-date Pin
TheGreatAndPowerfulOz28-Jan-11 7:27
TheGreatAndPowerfulOz28-Jan-11 7:27 
GeneralRe: Visual Studio Add-In for checking if file is up-to-date Pin
Code-o-mat28-Jan-11 8:49
Code-o-mat28-Jan-11 8:49 
GeneralRe: Visual Studio Add-In for checking if file is up-to-date Pin
TheGreatAndPowerfulOz28-Jan-11 10:10
TheGreatAndPowerfulOz28-Jan-11 10:10 
QuestionRe: Visual Studio Add-In for checking if file is up-to-date Pin
David Crow28-Jan-11 9:33
David Crow28-Jan-11 9:33 
AnswerRe: Visual Studio Add-In for checking if file is up-to-date Pin
Code-o-mat28-Jan-11 10:20
Code-o-mat28-Jan-11 10:20 
GeneralRe: Visual Studio Add-In for checking if file is up-to-date Pin
David Crow28-Jan-11 10:27
David Crow28-Jan-11 10:27 
GeneralRe: Visual Studio Add-In for checking if file is up-to-date Pin
Code-o-mat28-Jan-11 10:41
Code-o-mat28-Jan-11 10:41 
Questionaccess of disk and partition of disk Pin
john563228-Jan-11 0:01
john563228-Jan-11 0:01 
AnswerRe: access of disk and partition of disk Pin
Richard MacCutchan28-Jan-11 1:33
mveRichard MacCutchan28-Jan-11 1:33 
QuestionRe: access of disk and partition of disk Pin
CPallini28-Jan-11 2:32
mveCPallini28-Jan-11 2:32 
QuestionHow Can I Get Pixel Color of a bitmap image? Pin
Amrit Agr27-Jan-11 22:46
Amrit Agr27-Jan-11 22:46 
QuestionRe: How Can I Get Pixel Color of a bitmap image? Pin
CPallini27-Jan-11 23:00
mveCPallini27-Jan-11 23:00 
AnswerRe: How Can I Get Pixel Color of a bitmap image? Pin
User 742933827-Jan-11 23:22
professionalUser 742933827-Jan-11 23:22 

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.