简体   繁体   English

什么是Visual Studio中使用的.rc2文件

[英]What are .rc2 files used for in Visual Studio

I am new to Windows environment of development. 我是Windows环境开发的新手。 I see a lot of .rc2 files used where a mapping is performed against some MACRO type constants to strings. 我看到了许多.rc2文件,这些文件是针对某些MACRO类型常量执行到字符串的映射的。

Q1. Q1。 Why are these .rc2 files used? 为什么使用这些.rc2文件?

Can someone give me a start on these. 有人可以让我开始这些。

Another important point besides Konamiman's answer is that the .rc file is automatically built from the Visual Studio graphical resource edior. Konamiman答案之外的另一个重要点是,.rc文件是从Visual Studio图形资源版本自动构建的。 Therefore if you want any manually editted resources they need to be placed in the .rc2 file. 因此,如果您需要任何手动编辑的资源,则需要将它们放置在.rc2文件中。

From MSDN : MSDN

The RC2 file can be included at the top of the RC file in a project. RC2文件可以包含在项目中RC文件的顶部。 An RC2 file is useful for including resources used by several different projects. RC2文件可用于包含多个不同项目使用的资源。 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. 不必为不同的项目多次创建相同的资源,您可以将它们放在RC2文件中,并将RC2文件包含在主RC文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM