I think the C++ Direct3D project template should not use the project name (<RootNamespace>) to name the main IFrameworkView class, like Direct3DApp1.
It will conflict with the namespace if you need to use the it. (Of course, I can modify the class name or the vcxproj file with text editor manually .)