Click here to Skip to main content
15,917,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwinsock error message Pin
d_lite27-Aug-03 18:26
d_lite27-Aug-03 18:26 
GeneralRe: winsock error message Pin
Florin Ochiana27-Aug-03 20:30
Florin Ochiana27-Aug-03 20:30 
GeneralRe: winsock error message Pin
d_lite27-Aug-03 22:21
d_lite27-Aug-03 22:21 
Questionhow to convert string to CTime object? Pin
Habbit27-Aug-03 16:13
Habbit27-Aug-03 16:13 
AnswerRe: how to convert string to CTime object? Pin
Ravi Bhavnani27-Aug-03 19:33
professionalRavi Bhavnani27-Aug-03 19:33 
GeneralPre compiled Headers Pin
inrecovery27-Aug-03 14:12
inrecovery27-Aug-03 14:12 
GeneralRe: Pre compiled Headers Pin
Navin27-Aug-03 14:16
Navin27-Aug-03 14:16 
GeneralRe: Pre compiled Headers Pin
inrecovery27-Aug-03 14:25
inrecovery27-Aug-03 14:25 
Thanks for the reply.
Please allow me to rephrase my question and ask a few more as well.

1) I do know *how* to use the stdafx.h/cpp files and hence the *Creating/using precompiled headers * options.
What I do now is that I include all Window and STL Headers that I need in the project in the stdafx.h file and then include this file as the firstinclude in every other file of the project and using the options, I select *Using precompiled headers * for all these files and *Create precompiled headers * for the stdafx.cpp.

So far so good.. or is it? Can someone please comment.

2) I include the statement
using namespace std;

within the stdafx.h file! Is that right?

3) When if at all would it be beneficial(implying reduced compile time and all the other benefits of using precompiled headers.....which are......? ) to use the *automatic precompiled header* option?

4) How does one use the automatic precompiled header option,
i)Select the option from the avialble compiler options
ii)Use the default or otherwise specify the name for the.pch file
iii)Use the
#pragma hdrstop
directive after including each and every header file that you need in eachand every file that needs to include them,

Can someone please confirm if this is right.

5) Is it better to have ONE header file [as I get currently] that has ALL the includes that might be needed by the entire project OR should one include each and eevry header file explicitly in the source files. Which in your opinion is a better option and why!

THANKS again.
GeneralRe: Pre compiled Headers Pin
Navin27-Aug-03 16:07
Navin27-Aug-03 16:07 
GeneralRe: Pre compiled Headers Pin
Steve S27-Aug-03 22:55
Steve S27-Aug-03 22:55 
GeneralMicrosoft 'C' Compiler 6.00 Pin
C. Augusto Proiete27-Aug-03 13:35
C. Augusto Proiete27-Aug-03 13:35 
GeneralRe: Microsoft 'C' Compiler 6.00 Pin
Steve S27-Aug-03 22:49
Steve S27-Aug-03 22:49 
GeneralRe: Microsoft 'C' Compiler 6.00 Pin
C. Augusto Proiete28-Aug-03 3:39
C. Augusto Proiete28-Aug-03 3:39 
Generalpass complex data type from CMyapp to CMyDoc (std MFC stuf) Pin
Member 53141427-Aug-03 12:54
Member 53141427-Aug-03 12:54 
GeneralRe: pass complex data type from CMyapp to CMyDoc (std MFC stuf) Pin
Ravi Bhavnani27-Aug-03 13:12
professionalRavi Bhavnani27-Aug-03 13:12 
GeneralRe: pass complex data type from CMyapp to CMyDoc (std MFC stuf) Pin
Antti Keskinen16-Feb-04 3:04
Antti Keskinen16-Feb-04 3:04 
GeneralAssertion error at CDialog dereived class constructor Pin
Vassilis Papoulidis27-Aug-03 12:47
Vassilis Papoulidis27-Aug-03 12:47 
GeneralRe: Assertion error at CDialog dereived class constructor Pin
valikac27-Aug-03 12:51
valikac27-Aug-03 12:51 
GeneralRe: Assertion error at CDialog dereived class constructor Pin
Dave Bryant27-Aug-03 12:57
Dave Bryant27-Aug-03 12:57 
Generalkeybd_event question Pin
halblonious27-Aug-03 11:53
halblonious27-Aug-03 11:53 
QuestionWhat is a game engine?? Pin
Snyp27-Aug-03 10:09
Snyp27-Aug-03 10:09 
AnswerRe: What is a game engine?? Pin
Jim Crafton27-Aug-03 10:21
Jim Crafton27-Aug-03 10:21 
AnswerRe: What is a game engine?? Pin
Maximilien27-Aug-03 10:26
Maximilien27-Aug-03 10:26 
GeneralASSERT failure Pin
mr200327-Aug-03 9:13
mr200327-Aug-03 9:13 
GeneralRe: ASSERT failure Pin
David Crow27-Aug-03 9:53
David Crow27-Aug-03 9:53 

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.