wth is the whole idea of a .cc file?
by Ace · in General Discussion · 02/21/2002 (2:01 am) · 11 replies
where did this idea come from and why was it decided to be used? Ok it took awhile for this to get to me,,,but com on why .cc,,,,and not .c or even .cpp somthing normal.
my whole b1tch is this:
normal files ,,,when you load them up in cv++ or even text pad highlight know functions in cool colors ,,,you know like: void,#define,#include,extern,ect.ect.
but this .cc dosenot,,,so whats the dael here?
(ya i know its way past my bed time but i would still like to know the reasoning behind the .cc files)
my whole b1tch is this:
normal files ,,,when you load them up in cv++ or even text pad highlight know functions in cool colors ,,,you know like: void,#define,#include,extern,ect.ect.
but this .cc dosenot,,,so whats the dael here?
(ya i know its way past my bed time but i would still like to know the reasoning behind the .cc files)
About the author
#2
Don't forget to reboot! If you don't, you'll be annoyed (like I was) witht he lack of colored syntax support in msvc++
02/21/2002 (2:31 am)
Make sure you apply the .cc registry changes and reboot. Then msvc++ will show syntax coloring and the like. Only gripe I have is MSVC++ still won't autodetect .cc files in the "open file" dialog. I have to select "show all files" if I want to browse .ccs.Don't forget to reboot! If you don't, you'll be annoyed (like I was) witht he lack of colored syntax support in msvc++
#3
thanks
02/21/2002 (12:30 pm)
um, ya the correct term would be syntax coloring , and you are right mc++ dose show it but you have to do the all files thing,,,which i can live with,,,,is there a way to show line numbers and do word wraping in vc++? if there is how? then i would say screw textpad for editing torque and us vc++thanks
#4
02/21/2002 (1:14 pm)
You could always go into notepad and save the text as "sourcecodename.cpp" or .c or whatever you want use...if you really wanted to to.
#5
02/21/2002 (1:31 pm)
ya i could do that with textpad too ,,but there ar a looot of cc files,,,,guess ill go find an editor that supports all of them (this is a real let down i like text pad alot)
#6
You can use TextPad to edit the *.cc files with syntax coloring. It just takes a sec to setup. Go to Configure->New Document Class... Give it a name, associate it with the *.cc extension (I added *.mis and *.cs for the torque scripts too), and enable syntax coloring with the cpp.syn definition and there you go.
But MSVC++ will do the syntax coloring too if you apply the registry changes and reboot like Matt mentioned.
Mike
02/26/2002 (5:14 pm)
Gary, You can use TextPad to edit the *.cc files with syntax coloring. It just takes a sec to setup. Go to Configure->New Document Class... Give it a name, associate it with the *.cc extension (I added *.mis and *.cs for the torque scripts too), and enable syntax coloring with the cpp.syn definition and there you go.
But MSVC++ will do the syntax coloring too if you apply the registry changes and reboot like Matt mentioned.
Mike
#7
(guess ya gotta be smarter then what your working on)
:)
[added]
oh ya i did have the colors in vc++ just not the line numbers
02/27/2002 (5:25 am)
oh wow, heh thanks a million for your reply.(guess ya gotta be smarter then what your working on)
:)
[added]
oh ya i did have the colors in vc++ just not the line numbers
#8
After a number of Google searches I found the following:
- add the /Tp switch in the Project Options box for both Debug & Release versions
This forces VC6++ fully recognize the file extension.
Downside is you can no longer mix c/c++ files.
02/11/2003 (5:41 pm)
While working building a TGE app from scratch I ran into a problem of VC6++ still not recognizing .cc extensions even after running the VC6 .cc compiling.reg script.After a number of Google searches I found the following:
- add the /Tp switch in the Project Options box for both Debug & Release versions
This forces VC6++ fully recognize the file extension.
Downside is you can no longer mix c/c++ files.
#9
>>Make sure you apply the .cc registry changes and reboot. Then msvc++ will show syntax coloring and the like
02/12/2003 (9:38 am)
Anyone have a link on how to do this?>>Make sure you apply the .cc registry changes and reboot. Then msvc++ will show syntax coloring and the like
#10
Run the following file located in torque/vc6:
- VC6 .cc compiling.reg
Reboot the computer.
The Torque SDK.dsw will load and run with proper syntax highlighting.
If you create a project from scratch be sure to add the /Tp switch in the project->settings Project Options box for both Debug & Release.
This forces the compiler to recognize .cc extension as a valid file to compile. You won't be able to mix C programs with C++ though if you do that.
02/12/2003 (9:46 am)
Here's how:Run the following file located in torque/vc6:
- VC6 .cc compiling.reg
Reboot the computer.
The Torque SDK.dsw will load and run with proper syntax highlighting.
If you create a project from scratch be sure to add the /Tp switch in the project->settings Project Options box for both Debug & Release.
This forces the compiler to recognize .cc extension as a valid file to compile. You won't be able to mix C programs with C++ though if you do that.
#11
02/12/2003 (5:13 pm)
heh, that was a while ago, :)
Torque 3D Owner Bruce Wallace
The problem lies with your tools and not with the naming of the files. They should be easily able to be set up to use .cc as a C++ source file, if not find a new tool.
Bruce.