Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Combobox list height? Pin
clintsinger6-Nov-01 18:40
clintsinger6-Nov-01 18:40 
GeneralRe: Combobox list height? Pin
Joaquín M López Muñoz6-Nov-01 19:57
Joaquín M López Muñoz6-Nov-01 19:57 
GeneralRe: Combobox list height? Pin
clintsinger7-Nov-01 6:03
clintsinger7-Nov-01 6:03 
GeneralFrom one ListBox to another Pin
Monica6-Nov-01 10:54
Monica6-Nov-01 10:54 
GeneralRe: From one ListBox to another Pin
Ravi Bhavnani6-Nov-01 11:03
professionalRavi Bhavnani6-Nov-01 11:03 
GeneralListBoxes and the magic of VKeyToItem() Pin
Andrew Stampor6-Nov-01 10:50
Andrew Stampor6-Nov-01 10:50 
GeneralRe: ListBoxes and the magic of VKeyToItem() Pin
Ravi Bhavnani6-Nov-01 11:15
professionalRavi Bhavnani6-Nov-01 11:15 
GeneralRe: ListBoxes and the magic of VKeyToItem() Pin
Andrew Stampor6-Nov-01 11:26
Andrew Stampor6-Nov-01 11:26 
GeneralSetCapture hell Pin
Christian Graus6-Nov-01 10:41
protectorChristian Graus6-Nov-01 10:41 
GeneralRe: SetCapture hell Pin
Andrew Peace6-Nov-01 13:27
Andrew Peace6-Nov-01 13:27 
GeneralRe: SetCapture hell Pin
Jon Hulatt6-Nov-01 22:16
Jon Hulatt6-Nov-01 22:16 
Generalbrowser Pin
6-Nov-01 9:45
suss6-Nov-01 9:45 
General#include "everything.h" Pin
Jamie Hale6-Nov-01 9:18
Jamie Hale6-Nov-01 9:18 
GeneralRe: #include "everything.h" Pin
PJ Arends6-Nov-01 9:31
professionalPJ Arends6-Nov-01 9:31 
GeneralRe: #include "everything.h" Pin
Jamie Hale6-Nov-01 9:36
Jamie Hale6-Nov-01 9:36 
GeneralRe: #include "everything.h" Pin
DanYELL6-Nov-01 13:21
DanYELL6-Nov-01 13:21 
GeneralRe: #include "everything.h" Pin
Steen Krogsgaard6-Nov-01 22:20
Steen Krogsgaard6-Nov-01 22:20 
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 0:48
Tomasz Sowinski7-Nov-01 0:48 
GeneralRe: #include "everything.h" Pin
Jamie Hale7-Nov-01 4:23
Jamie Hale7-Nov-01 4:23 
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 7:19
Tomasz Sowinski7-Nov-01 7:19 
GeneralRe: #include "everything.h" Pin
Jamie Hale7-Nov-01 7:51
Jamie Hale7-Nov-01 7:51 
Despite the fact that there's absolutely nothing of interest to any of our competitors in our stdafx.h file, posting it would likely be a breach of my contract and hence a Bad Thing(TM).

But no, I'm not kidding. Before I moved everything around, there were about a dozen includes in each file in the project (header and source). So it probably ended up including everything anyways... But one post recommend I put everything in the stdafx.h to take advantage of the MS precompiled header stuff, and holy crap, our build time jumped from about 4 minutes to about 40 seconds.

And of course now, when I make even minor changes to one of the headers, it has to recompile everything.

I understand now style-wise that it's not a good idea, and I'm really looking forward to reading that book you recommended (the reviews make it sound like it's the book I've been looking for for a few years). But could you post a suggested alternative?

It looks like I have 3 options:
1) Put everything in the stdafx.h file and suffer the long and finicky builds.
2) Have each source file include the files that it needs (in the order it needs them) and suffer from each source file having potentially dozens of includes that all have the be in the right order. Build times would be more reasonable.
3) Have each header file have its own includes for specific files that it needs. Have each source file include what it needs above and beyond what comes in through the includes in the included headers. This is clearer than 2 and faster than 1, but it's not as pretty as I would like.

Can it get prettier?

J
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 8:12
Tomasz Sowinski7-Nov-01 8:12 
GeneralRe: #include "everything.h" Pin
Mukkie7-Nov-01 9:30
Mukkie7-Nov-01 9:30 
Generalread the color Pin
6-Nov-01 8:58
suss6-Nov-01 8:58 
GeneralRe: read the color Pin
Nish Nishant6-Nov-01 9:08
sitebuilderNish Nishant6-Nov-01 9:08 

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.