UE4.9+4.10 missing windows.h

Hi there,

So, I’ve googled round, I’ve messed with settings, and I have no idea what’s up.

When creating a C++ project, it tells me that compling has failed and propmpts me to open visual studio. When I build the project via VS, it fails with the following error:

Error	1	error RC1015: cannot open include file 'windows.h'.	C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc	10	1	ProjectCricket
Error	2	error RC1015: cannot open include file 'windows.h'.	C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl	3	1	ProjectCricket
Error	3	error C1083: Cannot open include file: 'new': No such file or directory	C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h	5	1	ProjectCricket
Error	4	error : Failed to produce item: C:\Users\James\Documents\Unreal Projects\ProjectCricket\Binaries\Win64\UE4Editor-ProjectCricket.dll	C:\Users\James\Documents\Unreal Projects\ProjectCricket\Intermediate\ProjectFiles\ERROR	ProjectCricket
Error	5	error MSB3073: The command ""C:\Program Files\Epic Games\4.9\Engine\Build\BatchFiles\Build.bat" ProjectCricketEditor Win64 Development "C:\Users\James\Documents\Unreal Projects\ProjectCricket\ProjectCricket.uproject" -rocket -waitmutex" exited with code -1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets	38	5	ProjectCricket

I’m running UE4 on windows 10, and I have tried both V4.9 and V 4.10, on VS2012, VS2013, and VS2015, to no avail. I have tried reinstalling Visual Studio, I have tried reinstalling UE, I have tried reinstalling windows SDK, I have checked that the PATH variables to make sure it’s there, I’ve checked the regedit stuff for windows SDK to make sure it is set correct. I’ve tried changing the windows SDK path in the project properties, but all this to no avail.

Has anyone had this issue and know how to solve it?

Hi, please read this post:

Hope this helps!