I tried making an item template. In the zip I put the files module.cpp
, module.h
, module.ico
and module.vstemplate
. The vstemplate file is:
<VSTemplate Type="Item" Version="2.0.0"
xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>C++ cpp/h pair (st)</Name>
<Description></Description>
<Icon>module.ico</Icon>
<ProjectType>VisualC</ProjectType>
<DefaultName>MyClass</DefaultName>
</TemplateData>
<TemplateContent>
<ProjectItem TargetFileName="$fileinputname$.cpp">module.cpp</ProjectItem>
<ProjectItem TargetFileName="$fileinputname$.h">module.h</ProjectItem>
</TemplateContent>
</VSTemplate>
I copied this to the "custom item templates" dir (not the systemwide one): Documents\Visual Studio 2010\Templates\ItemTemplates\VisualC\module.zip
The VisualC folder wasn't there, I created it because I saw one called VisualC in the systemwide templates dir.
I've tried restarting VS. I also tried the "devenv /installvstemplates" thing just in case.