Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are .rc2 files used for in Visual Studio

I am new to Windows environment of development. I see a lot of .rc2 files used where a mapping is performed against some MACRO type constants to strings.

Q1. Why are these .rc2 files used?

Can someone give me a start on these.

like image 799
pankajt Avatar asked Dec 11 '09 09:12

pankajt


2 Answers

Another important point besides Konamiman's answer is that the .rc file is automatically built from the Visual Studio graphical resource edior. Therefore if you want any manually editted resources they need to be placed in the .rc2 file.

like image 88
Nic Strong Avatar answered Nov 19 '22 06:11

Nic Strong


From MSDN:

The RC2 file can be included at the top of the RC file in a project. An RC2 file is useful for including resources used by several different projects. Instead of having to create the same resources several times for different projects, you can put them in an RC2 file and include the RC2 file into the main RC file.

like image 43
Konamiman Avatar answered Nov 19 '22 05:11

Konamiman