Reputation: 3364
I would like to create a custom template for project in Visual C++ 2012.
I know that I can create a project and then use File->Export template...
.
But how to achive the checkboxes, selects or whatever like that in the template, so the user can customize the project?
E.g. My custom project will always include some libraries etc., but I want to show the 3 check-boxes: "include 2d engine", "include 3d engine" and "include internet module" - based on it, I will or won't include some more libraries and set defines.
In other words, for the Win32 you have:
And for MyProjectTemplate, I would like to have 3 checkboxes with own labels (just like "empty project", "export symbols" and "precompiled header" on the image above).
Upvotes: 1
Views: 158
Reputation: 88
I think what you want is a custom wizard.
You can create one by creating a new project using the "custom wizard" project wizard under Visual C++ -> General.
Here is a screenshot of the wizard it generates by default.
Upvotes: 1