I am getting #error WINDOWS.H already included. MFC apps must not #include windows.h
But i dont know how do i find out because of which file this is happening
Check probably Windows.h might be included in your stdafx.h file. If so, then comment Windows.h and then check, the error may go off. Because I had the same problem I resolve in same way.