As we all know, VC default executable (. exe) output to a folder called Debug, but DirectX game's. exe runtime must be with pictures, music (called Resources) together (by default, in a folder),
For example, say: (Can run)
(Cannot run)
But it also requires engineering at compile time. Vcxproj (also like a. cpp file with load resource code) and resources together, such as (can run)
So we can only change the VC output directory: First open your project, and then click on "Project" → "< a project > properties" → such as tablet settings
Explain: SolutionDir refers to the working directory (the directory where the project file is located), targetname refers to the name of the executable file, targetext refers to the output executable file (in other words, the output is an executable file).
Complete the full text. Please comment if you have questions, suggestions or problems. Thank you for reading.
VC2013 Setting the output file directory