Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Avoid use of the CRT? Pin
Naveen10-Jul-07 19:41
Naveen10-Jul-07 19:41 
QuestionEDIT BOX Pin
Maynka10-Jul-07 17:44
Maynka10-Jul-07 17:44 
AnswerRe: EDIT BOX Pin
Hamid_RT10-Jul-07 19:17
Hamid_RT10-Jul-07 19:17 
QuestionShellExecute Closing Application Pin
Moonis Ahmed10-Jul-07 17:03
Moonis Ahmed10-Jul-07 17:03 
AnswerRe: ShellExecute Closing Application Pin
Hamid_RT10-Jul-07 19:18
Hamid_RT10-Jul-07 19:18 
QuestionCompile- and Linking Time Tips Pin
InOut.NET10-Jul-07 13:37
InOut.NET10-Jul-07 13:37 
AnswerRe: Compile- and Linking Time Tips Pin
DevMentor.org10-Jul-07 14:44
DevMentor.org10-Jul-07 14:44 
AnswerRe: Compile- and Linking Time Tips Pin
Rick York10-Jul-07 14:54
mveRick York10-Jul-07 14:54 
It could be something in your header file hierarchy. Is a pre-compiled header option available with Builder ?

One thing I am now in the habit of doing (and I get some flak for) is a more proactive form of header inclusion guards. I use an included definition of the form :

#ifndef _INCLUDEFILE_H
#define _INCLUDEFILE_H
...


then I also put this in comments for easy cutting and pasting :

/***
#ifndef _INCLUDEFILE_H
#include "IncludeFile.h"
#endif
***/


and I use this form whenever I place an include statement in a header whether I am including one of mine or one from the compiler. Always !

Also - I usually take this even a bit farther. I make it a fatal error if a file is repeatedly included and this helps track them down quicker. This is done as follows :

#ifndef _INCLUDEFILE_H
#define _INCLUDEFILE_H
#else
#error repeated include of this file
#endif


You can comment off the #else and the #error if you don't want that to be a fatal error.

In the past I have made the conversion to this style very quickly because it's easy to do and it has always resulted in significant improvements in compile time for me. In fact, generally speaking, the larger the project the larger the speed-up that I have seen.

Now, this is only a compile time improvement so it does not address your link time issue. There are lots of variables involved in link time. Efficiency of the linker, amount of available memory, and hard drive speed are three biggies. Unfortunately I don't have any easy answers for this.
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 21:56
InOut.NET10-Jul-07 21:56 
AnswerRe: Compile- and Linking Time Tips Pin
Mark Salsbery10-Jul-07 15:05
Mark Salsbery10-Jul-07 15:05 
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 21:54
InOut.NET10-Jul-07 21:54 
AnswerRe: Compile- and Linking Time Tips Pin
Stephen Hewitt10-Jul-07 15:11
Stephen Hewitt10-Jul-07 15:11 
GeneralRe: Compile- and Linking Time Tips Pin
InOut.NET10-Jul-07 22:01
InOut.NET10-Jul-07 22:01 
Questionistream problem - not reading in line of text... Pin
moonraker92810-Jul-07 13:12
moonraker92810-Jul-07 13:12 
AnswerRe: istream problem - not reading in line of text... Pin
Mark Salsbery10-Jul-07 14:07
Mark Salsbery10-Jul-07 14:07 
GeneralRe: istream problem - not reading in line of text... Pin
DevMentor.org10-Jul-07 14:51
DevMentor.org10-Jul-07 14:51 
GeneralRe: istream problem - not reading in line of text... Pin
Mark Salsbery10-Jul-07 15:12
Mark Salsbery10-Jul-07 15:12 
GeneralRe: istream problem - not reading in line of text... Pin
moonraker92810-Jul-07 22:28
moonraker92810-Jul-07 22:28 
GeneralRe: istream problem - not reading in line of text... Pin
Mark Salsbery11-Jul-07 7:31
Mark Salsbery11-Jul-07 7:31 
AnswerRe: istream problem - not reading in line of text... Pin
DevMentor.org10-Jul-07 14:48
DevMentor.org10-Jul-07 14:48 
AnswerRe: istream problem - not reading in line of text... Pin
Hamid_RT10-Jul-07 19:25
Hamid_RT10-Jul-07 19:25 
Questionunhandled exception when adding null character using fstream Pin
moonraker92810-Jul-07 12:48
moonraker92810-Jul-07 12:48 
AnswerRe: unhandled exception when adding null character using fstream Pin
Mark Salsbery10-Jul-07 13:48
Mark Salsbery10-Jul-07 13:48 
AnswerRe: unhandled exception when adding null character using fstream Pin
DevMentor.org10-Jul-07 14:56
DevMentor.org10-Jul-07 14:56 
Questionusb connection Pin
HOYAM10-Jul-07 12:21
HOYAM10-Jul-07 12:21 

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.