We have introduced C++/CX and ran our first sample; now it is time to build our own framework gradually in order to get familiar with DirectX 11.1 programming:
First Metro Appproject from the source code of
Chapter 1. If you cannot find the Solution Explorer pane, press Ctrl + Alt + L or navigate to View | Solution Explorer to enable it.
Filterin our project. However, you can add
Filterand just change it to the path of
includesin your project.
Let's check the
pch.cpp files from the source code. The
pch.h file is shown in the following code:
#pragma once #include <wrl/client.h> #include <d3d11_1.h> #include ...