Hello,
I have this strange problem with Visual Studio C++ 2005 Express ( I used to have it with .NET 2003 too). When I go and create a new project and try to add a new item and look for a .cpp or .h file, they are not in the template list. Also some other file types seem to be missing but I can not say which since I don't use them that often. The strange thing is that in the beginning after I install the program I have those templtes there. I assume that I am messing up something when I run my optimization programs which include all kinds of tmp files cleaner and a couple of registry cleaning programs which might do something, but I have no idea. Has anyone have any idea what might be causing this problem and how to resolve it. Thank you in advance any responce will be highly appreciated.

Missing C++ Templates
LuisNeto
More feedback on the issue from Tarek Madkour:
Here's what tells the IDE that there's something called "C++ File" in the new item dialog:
1) A file called "$(VSInstallDir)\VC\VCNewItems\newitems.vsdir"
2) The contents of the newitems.vsdir file contain a line for "..\VCProjectItems\NewC++File.cpp"
3) The presence of a file called "$(VSInstallDir)\VC\VCProjectItems\NewC++File.cpp"
Whoever is missing the "C++ File" icon should check that the above is true. My guess is that either the .vsdir file got modified somehow, the newc++file.cpp file does not exist, or somehow they're on a file system that does allow "++" in the file name.
Hope this helps!
Thanks,
Ayman Shoukry
Lead Program Manager
VC++ Team
Ovesen
You said that you used a tmp cleaner. It probably deleted every directory with "TEMP" in the name without going as far as checking if the directory is a "TEMPlate" directory, and in the process, deleted the c++ template directories.
I had the same problem. Re-installing should help.
MARViN2003
huangmaoyi
Well one more thing you might do is just specify the file extention when you are in the new file window. Normally you would point to the .cpp file in the templates list and will type in the name of the file you wish to add without any extention i.e. 'main', but since there are no templates you can simply say add/new item/main.cpp and then there are a few things that you have to ged rid of but at the end you have your new main.cpp file added to your project. It's just a little more work.
Anyway if you find any good solution to the problem please share it.
10x
CoolSniper
I have same problem now, but it never happened before. Really strange and huge bug.
Does any one know better solution then previous.
Thnx.
deepika
hi there,
i'm having the same problem. Did you find a solution
Ben Andrews
Tom Hollander