I'm trying to work with a directx 12 sample using windows 10 sdk, visual studio 2015, on windows 7 SP1. I get the following error
The procedure entry point CreateFile2 could not be located in the dynamic link library Kernel32.dll
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI'm trying to work with a directx 12 sample using windows 10 sdk, visual studio 2015, on windows 7 SP1. I get the following error
The procedure entry point CreateFile2 could not be located in the dynamic link library Kernel32.dll
According to Microsoft itself the latest DirectX version supported on Windows 7 SP1 is "DX11.1". Even on Windows 8 you don't have access to DX12. I guess that's what causing the problem. No matter what, you won't be able to develop a DX12 app on any version of windows beside Win10.
_WINNT_WIN32
to 0x0601
for Windows 7 or 0x0A00
for Windows 10. Unsupported COM-based APIs will of course fail to create. See Using the Windows Headers.
\$\endgroup\$
– Chuck Walbourn
Oct 24 '16 at 16:37
CreateFile2
is supported on Windows 8.0, Windows 8.1, and Windows 10. Again, it is possible to write a desktop application that uses DirectX 12 on Windows 10 and falls back to DirectX 11 for Windows 7 SP1, but this requires careful planning. For simplicity, most of our DX12 developer education material is assuming you are running Windows 10 and makes other assumptions such as CreateFile2
being supported--as to why CreateFile2
exists in the first place, this is to support the AppContainer security context used by Windows Store.
\$\endgroup\$
– Chuck Walbourn
Oct 24 '16 at 16:39