windows – after upgrading our visual studio projects to 2022, It gives errors with DirectX. qedit not found

after upgrading our visual studio projects to 2022, It gives errors with DirectX.

IT seems we may have to use windows SDK instead of DirectX in the latest VS projects. I tried to copy the missing headers like qedit.h. and tried to copy missing headers. But still I ednded up with the below errors.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\d3drmobj.h(454,42): error C2061: syntax error: identifier ‘LPDIRECT3DVIEWPORT’
1>(compiling source file ‘StdAfx.cpp’)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\d3drmobj.h(500,42): error C2061: syntax error: identifier ‘LPDIRECT3DVIEWPORT’
1>(compiling source file ‘StdAfx.cpp’)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\d3drm.h(74,15): error C2061: syntax error: identifier ‘LPDIRECT3D’
1>(compiling source file ‘StdAfx.cpp’)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\d3drm.h(156,15): error C2061: syntax error: identifier ‘LPDIRECT3D2’
1>(compiling source file ‘StdAfx.cpp’)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\d3drm.h(240,15): error C2061: syntax error: identifier ‘LPDIRECT3D2’

Read more here: Source link