Click here to Skip to main content
15,890,882 members
Articles / Desktop Programming / MFC

Including stdafx.h in a non-default location

18 Apr 2011CPOL 356   2
The problem is that this is not a valid C++ program. There is no "./StdAfx.h" file, so it should not compile. In fact, when you turn off PCH in project settings, the program won't compile.Moreover, the solution requires adding two lines instead of one into every cpp file.Just adding...
Only logged in members can view this content

Please go to the MFC Table of Contents to view the list of available articles in this section.