Click here to Skip to main content
15,743,429 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When creating my current project using Visual Studio 2015 I incorrectly specified the default file extension to be used (a Document/View project). (i.e. this is the extension that is automatically appended to a file name using the "Save Document" or the type of file filter automatically applied in a "File Open" action.) Other than recreating the project from scratch, how can I change this default extension?

What I have tried:

I have searched the "Properties" for the project, but I cannot find any reference to the (incorrect) file extension that is being applied.
Updated 31-Oct-17 3:10am

1 solution

It is stored as resource in the String Table. Look for the ID that is passed to the document template constructor (usually IDR_MAINFRAME).

The string consists of up to seven new line separated substrings. The meaning of the substrings is explained at CDocTemplate:: GetDocString[^].
Share this answer
Kornfeld Eliyahu Peter 31-Oct-17 9:15am    
It also in the *.reg file - it used to register the application as handle of that file extension...
Jochen Arndt 31-Oct-17 9:18am    
Thank you.
I forgot about the file type registration.
rbrunton 31-Oct-17 10:54am    
Much appreciated! The string table + *.reg file fixes solved the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900