Home > Software engineering >  VS2013 how to separate the source and header files in a different folder?
VS2013 how to separate the source and header files in a different folder?

Time:09-20

Using VS2013 write c + + programs, but it is all of the source and header files and project files together, now put it separately set up under the SRC folder, after change the file path Settings can be compiled through,
But after adding an MFC dialog, generate dialog.. CPP files and h files and resource. H files in the project file directory down again, how to set up for these files are generated in the directory of the definition of the following?
Expression may be a bit of confusion, hope leaders help!

CodePudding user response:

View, the property manager
The current project, the Debug | Win32, Microsoft Cpp. Win32. User, point the right mouse button, attributes,...
The current project, Release | Win32, Microsoft Cpp. Win32. User, point the right mouse button, attributes,...
?

CodePudding user response:

I am in the project properties, configuration properties, vc + + directories, contained directory added.. \ mark \ SRC such a path, mark is a project folder, SRC is source code, test according to what you said just now, or do

CodePudding user response:


The project properties connector of conventional output Settings $(OutDir) \ $(ProjectName). Exe to change the path of love for you

CodePudding user response:

Vs management folder, not need you to create your own

CodePudding user response:

From the project solution, the selected file, right out of the project,
Then in the heart of the resource manager files to the target position,
To add files from VS solution

CodePudding user response:

Also studied under the recently, there are no major progress, you can refer to:
Should be 1: what do you want, in v configuration, and then the new class, is added to a custom directory (rather than project files in a block), right?
2: VS add class, modify the path that was banned, so the class can only be added to the default directory, did not work.
3: if there is one Qt, add the class can choose to add the Qt class, this time is can choose a path, the path to your favorite line;
4: hope to useful,
  • Related