When you created the application, you chose to create a new WIN32 application project and created an entry function for this project, main. In this case, when you create the application, the compiler will see an error message for the connection program. Just look at the name to guess the program can not find the main entrance, and I Am the DirectX Demo sample program copied and pasted into, should be WIN32 application, so change the System link method, click on the project properties, select the linker system, subsystem options to select the Subsytem:console instead of/subsystem:windows recompile run no more errors, success!
In addition, how to configure DirectX SDK development environment under VS2013 reference Baidu experience http://jingyan.baidu.com/article/b7001fe199dbf00e7382dd75.html
Compile error LNK2019: unresolved external symbol _main