Re: KB192570 done right: Asynchronous sockets in threads

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Fri, 06 Apr 2007 11:11:22 +0200, Norbert Unterberg
<nunterberg@xxxxxxxxxxxxxxxxx> wrote:


Example:
You say that stdafx.h is reserved for standard header files. How would I know?
The MSDN says stdafx.h is for standard header files and project specific include
files. In the past I thought the only use is to speed up compilation due to
precompiled header files.

I think that if you put in stdafx.h your custom headers that are
subject to change frequently, the advantage or precompilation
vanishes.
You must put it in stdafx.h headers of things that are very stable and
don't change, like Windows headers, or C++ STL headers, etc.


Question is:
Where are all the "official Best Practices" documents? Is all this specified by
MS or in MSDN? Or is all your knowledge "common sense of an experienced developer"?

There are many helpful articles on your MVP tips site. Did you ever write a book
about MFC/C++ best practices or considered writing one?

Norbert is right.
Joe: you really should think about writing such a book!


Thanks for your invaluable help

Yes: thank you very much!

MrAsm
.



Relevant Pages

  • Re: Odd behaviur...
    ... Basically today I had two sets of header files - one set which ... recursively #included from headers, ... declare const structures recursively - the DDK C compiler complains ... >left wondering why a programmer capable of producing such code would ...
    (comp.lang.pascal.delphi.misc)
  • Re: [PATCH 44/57] microblaze_v7: termbits.h termios.h
    ... Compilation is OK and kernel works with your files too. ... of the generic header files in Linux based on my work, ... Note that there is a problem of binary compatibility with certain headers. ...
    (Linux-Kernel)
  • Re: Would I be violating the GPL?
    ... > Amongst the various arguments here for declaring a binary kernel ... And Microsoft's own attempts to license its header files, ... > of the author of the headers to distribute the resultant object code? ... Are you creating your source code based on somebody else's source code, ...
    (Linux-Kernel)
  • [PATCH 00/16] asm-generic headers, v4
    ... This is the complete set of new asm-generic header files, ... end of screwed-up email headers for me. ... rename termios.h, signal.h and mman.h ... rewrite include/asm-generic/atomic.h ...
    (Linux-Kernel)
  • Re: [PATCH 44/57] microblaze_v7: termbits.h termios.h
    ... Arnd Bergmann wrote: ... Compilation is OK and kernel works with your files too. ... of the generic header files in Linux based on my work, ... Note that there is a problem of binary compatibility with certain headers. ...
    (Linux-Kernel)