Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Microsoft Visual C++ to recognize .cc files

Status
Not open for further replies.

rmadden

Programmer
Sep 10, 2003
3
US
Microsoft Visual C++ recognizes .cpp, .cxx, .c, .h, .tli,
.tlh, .inl and .rc. Is there a way to tell MVC++ to
recognize files with .cc extension so I can get my colors
to work right? Otherwise I have to open the source files
under all files extensions and then they are displayed
as just plain text.

Thanks Roger
 
I tweaked the registry to accomplish a similar thingie. Not sure if thats the "right" way to do it though...

HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Text Editor\Tabs\Language Settings\C/C++\FileExtensions

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
I am sorry. I should of included this information.
My OS is Microsoft NT 4.0. I am using Microsoft Visual C++ Professional Edition 6.0.

Thanks

Roger
 
I have found the answer. Goto View then properties and
choose C/C++ as your language and after closing the window
the colors will appear correctly.

Thanks for looking into this.

Roger
 
I never got that approach to be persistent (ie next time I opened the file its type was selected as &quot;None&quot;), hence my registry fiddeling (which works btw).


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Interesting. I have VC6 Enterprise on Win2k Pro and it recognizes .cc files. As does VC7 The file spec is even in the list during Find-In-Files with .cpp .h etc.

I can add .cc files to projects and they build and execute without having to perform any special configuration. They are displayed with syntax coloring and can be browsed etc. So far I can’t find anything missing.


-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top