Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd8-Jan-04 23:35
Qadddd8-Jan-04 23:35 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry9-Jan-04 0:10
BadJerry9-Jan-04 0:10 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd9-Jan-04 4:28
Qadddd9-Jan-04 4:28 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry9-Jan-04 4:40
BadJerry9-Jan-04 4:40 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd9-Jan-04 4:58
Qadddd9-Jan-04 4:58 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry9-Jan-04 5:40
BadJerry9-Jan-04 5:40 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd17-Jan-04 23:55
Qadddd17-Jan-04 23:55 
GeneralPrecompiled headers Pin
Patje7-Jan-04 22:49
Patje7-Jan-04 22:49 
I'm currently in the middle of redesigned a larger application.
Previously the application was divided in [too] large chunks (I will use the term chunk to distinguish it from files/modules). Each chunk had a lot of source (mainly .c) files, but only one header (.h) file that had to be included by the routines of that chunk and by other routines that wanted to use that chunk.
Up to now we used precompiled header files to speed up compilation (all files of a chunk had to include their own header file as first file).

Now I want to divide all these chunks in smaller C++ classes. Each class will have its own header (.h) file and source (.cpp) file. My hope is to end up with less includes, less dependencies and thus a faster compilation.
However, what I notice is just the opposite. We try to make a lot of use of STL and Boost templates, but these seem to slow down compilation seriously. On the other hand, we cannot use precompiled headers anymore because each class has its own header file.

In the fantastic book 'Debugging Applications for .Net and Windows', the author, John Robbins, suggests to use one main header file (e.g. ALL.H) that is included (first) by all of our source files. All includes that aren't changed in the last 3 months should be put in that header file (including STL and Windows includes). In our case we would typically include STL and Boost header files in that ALL.H file, but the template constructions even seem to slow down compilations if precompiled header files are used.

How do you organize your header files? How do you use precompiled headers? And what should be the correct way to use them?
(maybe this could be a question for a poll, but it is probably too C++ oriented for that).

Thanks for your help, fellow CPians.


Enjoy life, this is not a rehearsal !!!

Generalneed help Pin
sls0077-Jan-04 22:48
sls0077-Jan-04 22:48 
GeneralRe: need help Pin
Antti Keskinen8-Jan-04 0:16
Antti Keskinen8-Jan-04 0:16 
QuestionHow to create patch for program update? Pin
Ming Yan7-Jan-04 21:31
Ming Yan7-Jan-04 21:31 
AnswerRe: How to create patch for program update? Pin
Antti Keskinen7-Jan-04 21:38
Antti Keskinen7-Jan-04 21:38 
GeneralRe: How to create patch for program update? Pin
Ming Yan7-Jan-04 22:21
Ming Yan7-Jan-04 22:21 
GeneralRe: How to create patch for program update? Pin
Antti Keskinen8-Jan-04 0:11
Antti Keskinen8-Jan-04 0:11 
GeneralRe: How to create patch for program update? Pin
Ming Yan8-Jan-04 14:52
Ming Yan8-Jan-04 14:52 
Generalcreating toolbar window(MFC) Pin
grunt1237-Jan-04 21:08
grunt1237-Jan-04 21:08 
Questioncan u modify this proxy program,thank u . Pin
tujj997-Jan-04 20:58
tujj997-Jan-04 20:58 
Generallookup problem, pcap.h Pin
styve7-Jan-04 20:36
styve7-Jan-04 20:36 
GeneralRe: lookup problem, pcap.h Pin
Antti Keskinen7-Jan-04 21:41
Antti Keskinen7-Jan-04 21:41 
GeneralRe: lookup problem, pcap.h Pin
Mike Dimmick8-Jan-04 0:59
Mike Dimmick8-Jan-04 0:59 
Generalwrite into another app Edit Box Pin
SiddharthAtw7-Jan-04 20:14
SiddharthAtw7-Jan-04 20:14 
GeneralRe: write into another app Edit Box Pin
jhwurmbach7-Jan-04 20:27
jhwurmbach7-Jan-04 20:27 
Generalpreventing the user from closing a floating toolbar Pin
Hin Jang7-Jan-04 20:02
Hin Jang7-Jan-04 20:02 
GeneralRe: preventing the user from closing a floating toolbar Pin
Roger Allen8-Jan-04 3:18
Roger Allen8-Jan-04 3:18 
GeneralRe: preventing the user from closing a floating toolbar Pin
Hin Jang8-Jan-04 9:18
Hin Jang8-Jan-04 9:18 

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.