Microsoft Knowledge Base Email Alertz

KBAlertz.com: (839287) - Discusses the setting of the file name extensions, that are used by the Visual C++ editor in Visual Studio .NET 2003 and 2002

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 839287 - Last Review: March 19, 2007 - Revision: 3.2

How to set a different file name extension on files to be opened by the Visual C++ editor in Visual Studio .NET and in Visual Studio 2005

INTRODUCTION

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986  (http://kbalertz.com/Feedback.aspx?kbNumber=256986/ ) Description of the Microsoft Windows Registry


If you want the Visual C++ editor to treat files as Visual C++ files, you must specify the file name extensions in the NCB Default C/C++ Extensions key in Microsoft Visual Studio 2005, in Microsoft Visual Studio .NET 2003, and in Microsoft Visual Studio .NET 2002. When the editor treats the files as Visual C++ files, the files are colorized, and Microsoft IntelliSense is established on the files. The following is the registry key that contains these values:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Languages\Language Services\C/C++
For a file type to be treated as a Microsoft Interface Definition Language (IDL) file, the file name extension must be specified in the NCB Default IDL Extensions key. The following is the registry key that contains these values:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Languages\Language Services\C/C++
The following is an example of the values that this registry key typically holds:
NCB Default C/C++ Extensions=".cpp;.cxx;.c;.cc;.h;.hh;.hxx;.hpp;.inl;.tlh;.tli;"
NCB Default IDL Extensions=".odl;.idl;.odh"

MORE INFORMATION

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

If you want the Visual C++ editor to treat a file type as a Visual C++ file, modify the value of the NCB Default C/C++ Extensions key. If you want a file type to be treated as an IDL file, modify the value of the NCB Default IDL Extensions key.

To modify the registry, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate the registry key that you want to modify.
  3. Right-click the key, click Modify, type the value, and then click OK.

REFERENCES

For additional information, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/8c5ztk84(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/8c5ztk84(vs.71).aspx)

APPLIES TO
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
Keywords: 
kbsettings kbide kbhowto kbinfo KB839287
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

fedir Report As Irrelevant  
Written: 11/24/2005 1:23 PM
I tried to follow all recomendation from that article but nothing happend in Visual Studio .NET 2003. May be I need toggled some flags in VS .NET?

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please