Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multi-thread question, perhaps Pin
James R. Twine30-Jan-07 11:18
James R. Twine30-Jan-07 11:18 
AnswerRe: multi-thread question, perhaps Pin
goodoljosh19801-Feb-07 0:59
goodoljosh19801-Feb-07 0:59 
QuestionHow to get all the hardware configuration details using VC++? Pin
V.Natarajan30-Jan-07 7:44
V.Natarajan30-Jan-07 7:44 
QuestionRe: How to get all the hardware configuration details using VC++? Pin
David Crow30-Jan-07 7:48
David Crow30-Jan-07 7:48 
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 
Okay, so I'm going through some code (off codeproject), which is always interesting, since you see so many different styles. One piece of code had a class within a class, I suppose forcing only one user of the internal class. I don't even know if I'm using the correct terminology, so bear with me.

I come from the school of development where one .cpp and one .h file defines one class. I've seen others have a utility.cpp/h file with multiple classes in it. In the past, this arrangement made it difficult to find things, but I suppose with the advent of code browsers, the issue is more subdued. However, in keeping with the one class / one file appproach, I tend to code my applications centered around dialogs or views or etc... standard mfc stuff. I doubt I'm the only one.

So, in real application development, some of these dialog/view classes can get huge. Due to the nature of my application, I am heavily dialog centric, so most of my application classes inherit from CDialog, etc. The data and processing associated with this dialog processing is heavily coupled to the dialog and usually is not used outside of the dialog. There are some obvious exceptions, and these go off into their own classes. Which brings me to my point....

Some of my dialog classes are large. Managing the data within it would lend itself to a class unto itself for the simple reason of enforcing discipline - the code can easily degrade to spaghetti land. But, I really don't want to break out the data (I guess we're talking business objects in a very distorted way) in a class, viewable across the project, when this class is only going to be used within another class.

How do you deal with this design issue? Inquiring minds want to know Smile | :)

Thanks

Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.

My son's PDA is an M249 SAW.
My other son commutes in an M1A2 Abrams

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 
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 

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.