Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get all the hardware configuration details using VC++? Pin
V.Natarajan30-Jan-07 8:08
V.Natarajan30-Jan-07 8:08 
GeneralRe: How to get all the hardware configuration details using VC++? Pin
David Crow30-Jan-07 8:16
David Crow30-Jan-07 8:16 
AnswerRe: How to get all the hardware configuration details using VC++? Pin
Hamid_RT30-Jan-07 18:20
Hamid_RT30-Jan-07 18:20 
QuestionPrivate/internal classes - opinions? Pin
charlieg30-Jan-07 7:29
charlieg30-Jan-07 7:29 
AnswerRe: Private/internal classes - opinions? Pin
led mike30-Jan-07 11:11
led mike30-Jan-07 11:11 
GeneralRe: Private/internal classes - opinions? Pin
charlieg30-Jan-07 14:03
charlieg30-Jan-07 14:03 
GeneralRe: Private/internal classes - opinions? Pin
led mike31-Jan-07 5:43
led mike31-Jan-07 5:43 
AnswerRe: Private/internal classes - opinions? Pin
Dennis Gourjii30-Jan-07 12:00
Dennis Gourjii30-Jan-07 12:00 
You could have a class in a separate h+cpp pair, but only #include it in the dialog header. The only instance of this class would then be a member variable inside the dialog class. This would make sure no other code uses it. If you want to go further, the business logic class could have a private constructor, and the dialog class declared as friend - another step towards not letting any other code use the business logic class.

If you're really fond of patterns, you could also make a class factory for the business logic class. See: http://en.wikipedia.org/wiki/Abstract_factory_pattern

Hope this helps.

Denis
AnswerRe: Private/internal classes - opinions? Pin
charlieg1-Feb-07 8:40
charlieg1-Feb-07 8:40 
QuestionVisual C++ ... Visual Basic ... Visual C# [modified] Pin
Khoramdin30-Jan-07 7:18
Khoramdin30-Jan-07 7:18 
AnswerRe: Visual C++ ... Visual Basic ... Visual C# Pin
Hamid_RT30-Jan-07 7:28
Hamid_RT30-Jan-07 7:28 
AnswerRe: Visual C++ ... Visual Basic ... Visual C# Pin
Christian Graus30-Jan-07 9:20
protectorChristian Graus30-Jan-07 9:20 
QuestionRe: Visual C++ ... Visual Basic ... Visual C# Pin
Khoramdin31-Jan-07 12:52
Khoramdin31-Jan-07 12:52 
AnswerRe: Visual C++ ... Visual Basic ... Visual C# Pin
Christian Graus31-Jan-07 21:28
protectorChristian Graus31-Jan-07 21:28 
QuestionCreateFile Problem Pin
TurboNext30-Jan-07 6:27
TurboNext30-Jan-07 6:27 
AnswerRe: CreateFile Problem Pin
David Crow30-Jan-07 6:31
David Crow30-Jan-07 6:31 
AnswerRe: CreateFile Problem Pin
Mark Salsbery30-Jan-07 6:36
Mark Salsbery30-Jan-07 6:36 
GeneralRe: CreateFile Problem Pin
TurboNext30-Jan-07 6:58
TurboNext30-Jan-07 6:58 
QuestionMaking strong passwords readeable Pin
Kharfax30-Jan-07 4:14
Kharfax30-Jan-07 4:14 
AnswerRe: Making strong passwords readeable Pin
Maximilien30-Jan-07 6:23
Maximilien30-Jan-07 6:23 
GeneralRe: Making strong passwords readeable Pin
Kharfax30-Jan-07 6:38
Kharfax30-Jan-07 6:38 
AnswerRe: Making strong passwords readeable Pin
markkuk30-Jan-07 23:00
markkuk30-Jan-07 23:00 
GeneralRe: Making strong passwords readeable Pin
Kharfax31-Jan-07 0:56
Kharfax31-Jan-07 0:56 
QuestionVista issues Pin
Waldermort30-Jan-07 4:04
Waldermort30-Jan-07 4:04 
AnswerRe: Vista issues Pin
Michael Dunn30-Jan-07 7:27
sitebuilderMichael Dunn30-Jan-07 7:27 

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.