Why can\'t I include windows.h in afx(MFC) projects?
Because in MFC you are not supposed to use it directly. AFAIR you should include afx.h instead, which in turn indirectly includes windows.h the proper way.