StdAfx + Header file - Order of inclusion in MFC application
问题 I am using Visual Studio 2005. I created an MFC based console application named \"StdAfx dependancy\". The IDE created the following files for me. Resource.h StdAfx Dependancy.h stdafx.h StdAfx Dependancy.cpp stdafx.cpp I added another class CHelper with Helper.h and Helper.cpp as below. Helper.h: #pragma once class CHelper { public: CHelper(void); ~CHelper(void); }; Helper.cpp #include \"StdAfx.h\" #include \"Helper.h\" CHelper::CHelper(void) { } CHelper::~CHelper(void) { } I created an