[omniORB] a fundamental question

Steven W. Brenneis brennes1@rjrt.com
Mon, 03 Apr 2000 08:15:54 -0400


The /Tp or /TP options are used in the compiler to accomplish this. /Tp
allows you to specify a single file as a C++ source, /TP specifies all
files on the command line as C++ source. If you want Dev Studio to treat
the .cc files correctly in the IDE (editing, source coloring, etc.), you
must set the following registry values:

HKEY_CLASSES_ROOT\.cc = "cppfile" (String Value)
HKEY_LOCAL_MACHINE\Software\Classes\.cc = "cppfile" (String Value)
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Build
System\Components\Platforms\Win32 (x86)\Tools\32-bit C/C++ Compiler for
80x86\Input Spec = "*.c;*.cpp;*.cxx;*.cc" (String Value)

These are the registry settings for DevStudio 5.0, I doubt they have
changed in 6.0. Just substitute 6.0 for 5.0 in your registry search.

Hope this helps.

tang wrote:

> platform : win98 & msvc6.0                               1
>
> I have a difficulty to make the devstudio accepting the ".cc" file
> extension as a regular C++ source file extension.
>
> how to do this without renaming the examples files?
>
> thanks.
> --
> Best regards,
>  tang                          mailto:ice_lake@sina.com