The development tool I used was visual Studio 2015, and the first Win32 application was developed smoothly, but once the DirectX-related code app was added it couldn't be started, and there was a series of problems! Let me down in a moment! But after a few days I try the mood again, and try again, finally put the application to start!
1, first of all, the first question is "Can't start Kernel32.lib"
FIX: Project-Properties-vc++-in the Library directory add $ (VCInstallDir) lib;$ (VCInstallDir) atlmfc;$ (windowssdk_librarypath_x86);
2, solve the kernel32.lib, and can not find Ucrtd.lib, method and Kernel32.lib similar, add C:\Program Files (x86) \ Windows kits\10\lib\10.0.10150.0 in the library directory \ucrt\x86;
3, unresolved external command [email protected], this is strange, this is not the function in the D3d11.h?
Workaround: Add #pragma comment (lib, "D3d11.lib") to the source file
4, an external command was parsed, and an external command could not find the _dxtrace, the workaround is similar, add #pragma comment (lib, "Dxerr.lib")
5, unresolved external symbol __vsnwprintf, this time it's not the same as the above approach.
FIX: Add Legacy_stdio_definitions.lib in Project-Properties-linker-Input-Additional dependencies
But I didn't realize it. 3, 42 problems can actually be solved by solving the fifth problem, adding d3d11.lib and dxerr.lib! in additional dependencies
Solve the above five problems a blank DIRECTX11 application is launched!
Blank DIRECTX11 Application