Click here to Skip to main content
15,878,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C code challenge... Pin
Richard MacCutchan19-Feb-23 5:19
mveRichard MacCutchan19-Feb-23 5:19 
GeneralRe: C code challenge... Pin
CPallini19-Feb-23 20:47
mveCPallini19-Feb-23 20:47 
QuestionMessage Closed Pin
14-Feb-23 10:04
Member 1496877114-Feb-23 10:04 
QuestionRe: How to add #include to makefile ? Pin
Mircea Neacsu14-Feb-23 10:44
Mircea Neacsu14-Feb-23 10:44 
AnswerRe: How to add #include to makefile ? Pin
Richard MacCutchan14-Feb-23 22:03
mveRichard MacCutchan14-Feb-23 22:03 
GeneralRe: How to add #include to makefile ? Pin
k505415-Feb-23 5:39
mvek505415-Feb-23 5:39 
QuestionMessage Closed Pin
14-Feb-23 4:39
Member 1496877114-Feb-23 4:39 
AnswerRe: How to manage application configuration ? Pin
Mircea Neacsu14-Feb-23 7:57
Mircea Neacsu14-Feb-23 7:57 
I'd say it doesn't matter. There are pros and cons to each solution. If you make it part of the main object you have fewer global/high-level objects but every time you access the configuration you go through the main object. This means at least more typing. If you make it a separate (global) object, the opposite is true.

My own take: some years ago I was going with the config as part of the main object for reasons of "code purity". These days I go with a separate object for pragmatic reasons.
Mircea

AnswerRe: How to manage application configuration ? Pin
jschell15-Feb-23 6:11
jschell15-Feb-23 6:11 
GeneralMessage Closed Pin
16-Feb-23 5:58
Member 1496877116-Feb-23 5:58 
GeneralRe: How to manage application configuration ? Pin
jschell16-Feb-23 6:47
jschell16-Feb-23 6:47 
QuestionMessage Closed Pin
10-Feb-23 14:24
Member 1496877110-Feb-23 14:24 
AnswerRe: Passing a pointer to object - using template - followup. Pin
Graham Breach10-Feb-23 21:35
Graham Breach10-Feb-23 21:35 
AnswerRe: Passing a pointer to object - using template - followup. Pin
Richard MacCutchan10-Feb-23 21:55
mveRichard MacCutchan10-Feb-23 21:55 
AnswerRe: Passing a pointer to object - using template - followup. Pin
CPallini10-Feb-23 23:24
mveCPallini10-Feb-23 23:24 
AnswerRe: Passing a pointer to object - using template - followup. Pin
jschell13-Feb-23 4:55
jschell13-Feb-23 4:55 
GeneralMessage Closed Pin
13-Feb-23 5:10
Member 1496877113-Feb-23 5:10 
GeneralRe: Passing a pointer to object - using template - followup. Pin
Richard MacCutchan13-Feb-23 5:37
mveRichard MacCutchan13-Feb-23 5:37 
GeneralRe: Passing a pointer to object - using template - followup. Pin
k505413-Feb-23 6:31
mvek505413-Feb-23 6:31 
GeneralRe: Passing a pointer to object - using template - followup. Pin
Gerry Schmitz13-Feb-23 6:43
mveGerry Schmitz13-Feb-23 6:43 
GeneralRe: Passing a pointer to object - using template - followup. Pin
jschell14-Feb-23 4:44
jschell14-Feb-23 4:44 
GeneralRe: Passing a pointer to object - using template - followup. Pin
jschell14-Feb-23 4:47
jschell14-Feb-23 4:47 
AnswerRe: Passing a pointer to object - using template - followup. Pin
Jeremy Falcon13-Feb-23 12:43
professionalJeremy Falcon13-Feb-23 12:43 
GeneralMessage Closed Pin
14-Feb-23 4:24
Member 1496877114-Feb-23 4:24 
GeneralRe: Passing a pointer to object - using template - followup. Pin
Jeremy Falcon14-Feb-23 5:34
professionalJeremy Falcon14-Feb-23 5:34 

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.