This solution was written as reply to the initial version of the question.
But the question has been edited showing now a completely different error messages.
This can't be answered without having the complete source code. While many errors are usually triggered by previous ones, it can be expected that there are still multiple lines generating errors.
To fix the errors, start at the very first. Because they occur in system header files, you have to find your source file that finally includes the system header file throwing the error.
But there is a hint:
e:\vsinstall\vc\atlmfc\include\afxv_w32.h(16): fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Some of your source files (*.cpp
) seems to include windows.h
Find that file and remove the include. When using pre-compiled headers, check your stdafx.h