DirectX:New Project in VS2019

Blog under Tag DirectX DirectX is mainly used for recording the learning process, the main reference "DirectX 12 3D games combat development."

Official Example Project

After www.d3dcoder.net download d3d12 project will be able to build their own project based on the official project. This selection of the IDE is VS2019, the new project select C ++ Empty Project , and then Common file official sample project folder to your project directory, in order to test run results, while the official project Chapter VI relating to box in BoxApp.cppand Shadersfolders also copied to the project directory, add the above in the header file .hfile, add the source file in the above .cppfile. At this point just start debugging will find the following error:

ERROR_1

As can be seen, given the content is relevant and strings, it is because the wrong character set in 项目属性- 配置属性- 高级under the character set to Unicode debugging again, the error disappeared. But time and the emergence of new errors:

ERROR_2

error LNK2019: 无法解析的外部符号 _main, _mainIs an identifier references at link time windowing subsystem, and the default link upload our project is to build an empty console, so it is necessary 项目属性- 配置属性- 链接器- 系统under the subsystem to modify 窗口(/SUBSYSTEM:WINDOWS)before you start debugging, you can run box project.

BOX

Guess you like

Origin www.cnblogs.com/Li-F/p/11511339.html
Recommended