Blank DIRECTX11 Application

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.