On Mon, Jun 19, 2006 at 09:39:58PM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Mon, Jun 19, 2006 at 06:36:25PM +0200, Lars Gullik Bjønnes wrote: > | > | stdafx.h contains all commonly used headers. msvc knows from a > | > | compiler flag (or by default) that stdafx.h (stopping header) is > | > | pre-processed and skip it. > | > > | > Use #pragma hdrstop instead. > | > | Looks like I have a really bad day. > | > | How is '#pragma hdrstop' less intrusive than '#include <pch.h>' > > I thought that the pragma wan only needed in a pch.cpp file, not in > all source files.
I've not used such in my MSVC project with precomipled headers. There is an extra command line option for compiling the 'pch "implementaion"', though. Andre'