Cannot execute Release x64 version successfully
berton1679 opened this issue · 0 comments
I try to compile the sample project(D3D11Image) with visual studio 2015, in Debug-x64 version, the WpfD3D11Interop.exe would be executed successfully but in Release-x64 version, the WpfD3D11Interop.exe always popup an error window
"""
This sample requires:
Manual build of the D3DVisualization project, which requires
installation of Windows 10 SDK or DirectXSDK.
Installation of the DirectX runtime on non-build machines.
Detailed exception message: Unable to load Dll 'D3DVisualization.dll':
The specified module could not be found.(Exception from HRESULT:0x8007007E)
"""
I'm 100% for sure that I've installed
DirectX SDK(https://www.microsoft.com/en-us/download/details.aspx?id=6812),
Windows 10 SDK(https://dev.windows.com/en-us/downloads/windows-10-sdk), and
compiled D3DVisualization.dll successfully.
BTW, I cannot compile .dll via WpfD3D11Interop_winsdk.sln, but it is okay via WpfD3D11Interop_dxsdk.sln. The error msessage is
"""
Cannot open include file: 'windows.h': No such file or directory
"""
It seems that there is no $(WindowsSDK_IncludePath) macro in D3DVisualization_winsdk.
Is there any library/dll should be installed I missed?
I think that it is weird the Debug can be executed but Release cannnot.
I've tried two pc.
OS:Windows 7 Embedded Standard SP1
CPU: i3-3220
OS:Windows 7 Professional SP1
CPU: i3-4150