Click here to Skip to main content
15,904,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Questionxxx_GetProcessIndexFromID error... Pin
charlieg10-Feb-23 11:46
charlieg10-Feb-23 11:46 
Questionis it okeedokee to include defining headers hither and yon all over the place Pin
BernardIE53179-Feb-23 6:28
BernardIE53179-Feb-23 6:28 
AnswerRe: is it okeedokee to include defining headers hither and yon all over the place Pin
Mircea Neacsu9-Feb-23 7:08
Mircea Neacsu9-Feb-23 7:08 
GeneralRe: is it okeedokee to include defining headers hither and yon all over the place Pin
BernardIE53179-Feb-23 7:46
BernardIE53179-Feb-23 7:46 
GeneralRe: is it okeedokee to include defining headers hither and yon all over the place Pin
Mircea Neacsu9-Feb-23 8:06
Mircea Neacsu9-Feb-23 8:06 
BernardIE5317 wrote:
i do not understand how placing the inner workings of each classes or function in the header w/o separating the two would make things easier


You know those pesky defines that you have in a header file? Imagine you have a library built with
C++
#define OPTION_A 1
#define OPTION_B 0

but your coworker needs the same library built with different options:
C++
#define OPTION_A 0
#define OPtION_B 1

Now you have two different libraries lib_opt10.lib and lib_opt01.lib.

Another project cannot be switched from Visual Studio 2019 to Visual Studio 2022. So now you have lib_opt01_19.lib, lib_opt10_19.lib, lib_opt01_22.lib and lib_opt10_22.lib. And so on and so forth (debug, release, x86, x64, arm, etc.). Congratulations for graduating from "DLL hell" and welcome to the new and improved "dependency hell".

Now if you have everything in the header file, all of a sudden there are no more libraries to manage and the only "small" side-effect is that you drink humongous amounts of coffee while waiting for your project to build. Smile | :)
Mircea

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.