Click here to Skip to main content
15,905,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhelp with algorithm Pin
coda_x6-Sep-03 17:24
coda_x6-Sep-03 17:24 
GeneralRe: Need help with idea Pin
Andrew Walker6-Sep-03 14:45
Andrew Walker6-Sep-03 14:45 
GeneralRe: Need help with idea Pin
Steven M Hunt6-Sep-03 15:57
Steven M Hunt6-Sep-03 15:57 
GeneralNeed help doing a simple game, ttt Pin
Snyp6-Sep-03 13:15
Snyp6-Sep-03 13:15 
GeneralRe: Need help doing a simple game, ttt Pin
Steven M Hunt6-Sep-03 13:30
Steven M Hunt6-Sep-03 13:30 
GeneralSocks Sock Socks! Pin
ez_way6-Sep-03 10:34
ez_way6-Sep-03 10:34 
GeneralRe: Socks Sock Socks! Pin
Jörgen Sigvardsson6-Sep-03 11:31
Jörgen Sigvardsson6-Sep-03 11:31 
Generalprocessing headers more efficiently Pin
Jim Crafton6-Sep-03 8:13
Jim Crafton6-Sep-03 8:13 
I have been wondering what is the best way to handle large scale projects and headers.
Currently for the VCF I have followed a 1 class = 1 header policy. For the Appkit I have ~ 233 .h files (acording to PLC).
Compiles, even with precompiled headers, take a bit. Is there a better way to organize the class declarations?
Is it smarter (even if it is not as easy to find classes) to *not* use the 1 class per .h rule, and instead combine many classes into one header?
Should common comment blocks (like CVS rev info, and copyright notices) fall before the include guards or within (or does it matter?)? For example:
(a)
/**
copyright, blah blah blah
*/
#ifndef _FOO_H__
#define _FOO_H__
//code
#endif //_FOO_H__


(b)
#ifndef _FOO_H__
#define _FOO_H__
/**
copyright, blah blah blah
*/

//code
#endif //_FOO_H__


Which is more efficient (a) or (b)?

I am using a fair amount of templates and some preprocessor stuff to add the extra RTTI support the framework uses. Does this make a big difference in compile times?

Thanks


¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralRe: processing headers more efficiently Pin
Andrew Walker6-Sep-03 15:07
Andrew Walker6-Sep-03 15:07 
GeneralRe: processing headers more efficiently Pin
Jim Crafton7-Sep-03 6:17
Jim Crafton7-Sep-03 6:17 
GeneralRe: processing headers more efficiently Pin
Serge Krynine8-Sep-03 0:18
Serge Krynine8-Sep-03 0:18 
GeneralUnderstanding HEAP: Free Heap block errors Pin
Jim Crafton6-Sep-03 7:34
Jim Crafton6-Sep-03 7:34 
GeneralRe: Understanding HEAP: Free Heap block errors Pin
Rama Krishna Vavilala6-Sep-03 11:05
Rama Krishna Vavilala6-Sep-03 11:05 
GeneralRe: Understanding HEAP: Free Heap block errors Pin
Jim Crafton6-Sep-03 11:08
Jim Crafton6-Sep-03 11:08 
QuestionFastest Text api? Pin
Roggan6-Sep-03 7:18
Roggan6-Sep-03 7:18 
GeneralSendMessage() Pin
lpRomang6-Sep-03 5:44
lpRomang6-Sep-03 5:44 
GeneralRe: SendMessage() Pin
Michael Dunn6-Sep-03 5:58
sitebuilderMichael Dunn6-Sep-03 5:58 
QuestionCView in DLL, CDocument in EXE :: How to share? Pin
clintsinger6-Sep-03 5:40
clintsinger6-Sep-03 5:40 
QuestionRegDeleteValue with REG_MULTI_SX/MoveFileEx? Pin
Kayembi6-Sep-03 5:16
Kayembi6-Sep-03 5:16 
AnswerRe: RegDeleteValue with REG_MULTI_SX/MoveFileEx? Pin
Kayembi7-Sep-03 2:35
Kayembi7-Sep-03 2:35 
GeneralRe: RegDeleteValue with REG_MULTI_SX/MoveFileEx? Pin
Kayembi7-Sep-03 3:49
Kayembi7-Sep-03 3:49 
GeneralSet the Bk color of a list ctrl Pin
Md Saleem Navalur6-Sep-03 3:07
Md Saleem Navalur6-Sep-03 3:07 
GeneralRe: Set the Bk color of a list ctrl Pin
valikac6-Sep-03 5:07
valikac6-Sep-03 5:07 
GeneralRe: Set the Bk color of a list ctrl Pin
Michael Dunn6-Sep-03 6:05
sitebuilderMichael Dunn6-Sep-03 6:05 
GeneralRe: Set the Bk color of a list ctrl Pin
Jörgen Sigvardsson6-Sep-03 11:33
Jörgen Sigvardsson6-Sep-03 11:33 

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.