Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen19-Aug-09 23:31
Cedric Moonen19-Aug-09 23:31 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini19-Aug-09 23:38
mveCPallini19-Aug-09 23:38 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S19-Aug-09 23:43
Nishad S19-Aug-09 23:43 
QuestionRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini19-Aug-09 23:58
mveCPallini19-Aug-09 23:58 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:02
Nishad S20-Aug-09 0:02 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:09
mveCPallini20-Aug-09 0:09 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:12
Nishad S20-Aug-09 0:12 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:18
mveCPallini20-Aug-09 0:18 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:22
Nishad S20-Aug-09 0:22 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:32
mveCPallini20-Aug-09 0:32 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 18:56
Nishad S20-Aug-09 18:56 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen20-Aug-09 0:47
Cedric Moonen20-Aug-09 0:47 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 1:14
Nishad S20-Aug-09 1:14 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen20-Aug-09 1:23
Cedric Moonen20-Aug-09 1:23 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 1:45
Nishad S20-Aug-09 1:45 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 18:54
Nishad S20-Aug-09 18:54 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Rajesh R Subramanian20-Aug-09 1:47
professionalRajesh R Subramanian20-Aug-09 1:47 
Questionhow to build a dialog like vista or windows 7 Pin
zhanghui543219-Aug-09 22:33
zhanghui543219-Aug-09 22:33 
AnswerRe: how to build a dialog like vista or windows 7 Pin
David Crow20-Aug-09 3:13
David Crow20-Aug-09 3:13 
GeneralRe: how to build a dialog like vista or windows 7 Pin
zhanghui543220-Aug-09 15:14
zhanghui543220-Aug-09 15:14 
GeneralRe: how to build a dialog like vista or windows 7 Pin
David Crow21-Aug-09 2:42
David Crow21-Aug-09 2:42 
AnswerRe: how to build a dialog like vista or windows 7 Pin
zhu_lin23-Aug-09 21:45
zhu_lin23-Aug-09 21:45 
GeneralRe: how to build a dialog like vista or windows 7 Pin
zhanghui543224-Aug-09 15:22
zhanghui543224-Aug-09 15:22 
Questionclass instantiation Pin
paolosh19-Aug-09 22:12
paolosh19-Aug-09 22:12 
Hi all,

I have a class, say GeneralBuilding, which could be one of the classes SmallBuilding, MediumBuilding, LargeBuilding, etc...., depending on the parameters passed to the Building constructor. SmallBuilding, MediumBuilding, and LargeBuilding have a common base class Building.

Is it possible that when i execute

GeneralBuilding x(1) // 1 bedroom...

that x is of a form chosen by the constructor depending on the constructor parameters (i.e. for sake of argument if no. bedrooms = 1 then x would be of class type SmallBuilding, if bedrooms = 2 then x would of type MediumBuilding, and if bedrooms >= 3 then x would be of type LargeBuilding) ?

The reason I'm interested in this is that I need the functionality for each type of GeneralBuilding to change depending on the building size, and i am trying to avoid a bunch of "if then" statements within one class. I'd like to spread the responsibilty to make the classes clean, tidy, safer, more maintainable etc.

I'm looking into it now...

Paul
AnswerRe: class instantiation Pin
Cedric Moonen19-Aug-09 22:22
Cedric Moonen19-Aug-09 22: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.