DirectX11 Solution
Projects main01(20160505), main02(20160416)

main.cpp
    WinMain()

game.cpp
game.h
    GameInit()
    GameMain()
    GameShutdown()

mainD3D.cpp
mainD3D.h
    D3DFunctions()    

mainPCH.cpp
    #include "mainPCH.h"
mainPCH.h
    // System includes
    // DirectX includes
    // STL includes
    // Link library dependencies

#ifndef MAINPCH_H_
#define MAINPCH_H_
#endif

// System includes
#include <windows.h>

// DirectX includes
#include <d2d1.h>
#include <dwrite.h>

// STL includes
#include <iostream>
#include <string>

// Link library dependencies
#pragma comment(lib, "d2d1.lib")
#pragma comment(lib, "dwrite.lib")
#pragma comment(lib, "winmm.lib")

// Safely release a COM object.
template<typename T>
inline void SafeRelease(T& ptr)
{
    if (ptr != NULL)
    {
        ptr->Release();
        ptr = NULL;
    }
}