A simple and simple study on vs C ++ custom project templates

Source: Internet
Author: User

Create a project by using the C ++ custom wizard.

It adds three template files to the vcprojects directory under vcinstalldir.

 

The default structure of the template project is roughly the same.

The most important thing is the default. js under the script file category, which specifies the template logic.

 

Files under the template file category, that is, files automatically created by projects generated by the template, such as the README and pre-defined headers of C ++ that are common in ATL projects ..

The contents listed in templates. inf under the Miscellaneous file category are displayed in the project ..

The default. vcproj under miscellaneous files is probably the default project configuration.

 

First, I tried to add two files under the template file category and write them into templates. INF.

 

F5, open vs, and create a project. You can see that the newly created Project template has already appeared.

All the way down

Prompt.

Directly go to the prompted directory and find that the files under the template file category are saved under Templates \ 2052, but the newly added files are stored in the solution root directory by convention.

Copy. Create a new custom project. As follows:

However, the template project is not suitable here.

You can directly modify the. vsz file in % vcinstalldir % \ vcprojects mentioned above... Hmm

Here, we can see that. However, most of the time, I just want to make minor changes to the project templates provided by Vs, especially win32console.

As you can see, its template project is put in % vcinstalldir % \ vcwizards \ appwiz \ Generic

.....

Search for vsz under the VC directory and you will see many templates... Which one should I start?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.