I am trying to migrate a program that I wrote a couple of years ago (scientific computation) in order to update it and add new functionalities.
My operating system is Windows 10. I am using Visual Studio Community 2015. No special problem to migrate my Visual 2012 code to it. The graphic part of my code (rendering of plots) was based on Direct3D 9. I understand it’s completely deprecated and I’d like to migrate to Direct3D 11.
After some investigation into that topic, it seemed to me convenient to use the DirectX ToolKit "directxtk_desktop_2015". To get familiarized with it, I decided to go through the “GitHub” tutorial called: The-basic-game-loop, Adding the DirectX Toolkit… etc https://github.com/Microsoft/DirectXTK/wiki/The-basic-game-loop
I am stuck at the 3rd step of the tutorial, which is trying to download a texture to display it on the screen:
DX::ThrowIfFailed(
CreateWICTextureFromFile(m_d3dDevice.Get(), L"cat.png", nullptr,
m_texture.ReleaseAndGetAddressOf()));
It throws me a file_not_found error. What is puzzling is that the cat.png file is visible in the “Assets” of the program in the "solution" window on the right of Visual studio.
What can be causing it?