Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Language used in resource (.rc) files?

I'm learning win32 programming this days (c++),I'm wondering what programming language is used in resource(.rc) files? and where can I find a complete reference to this language?

like image 791
Vahid2015 Avatar asked May 11 '15 17:05

Vahid2015


People also ask

What language are rc files?

Rc files are language files used to localize translatable text, dialogs, menus, for Windows applications. The file extension is . rc . WebTranslateIt can help localize Microsoft .

What is .RC file?

A resource file is a text file with the extension . rc. The file can use single-byte, double-byte, or Unicode characters. The syntax and semantics for the RC preprocessor are similar to those of the Microsoft C/C++ compiler. However, RC supports a subset of the preprocessor directives, defines, and pragmas in a script.

How do I create a .RC file in C++?

To create a resource script fileIn the menu, go to Project > Add New Item. Select the Visual C++ folder and choose Resource File (. rc) in the right pane. Provide a name for your resource script file in the Name text box and select Open.


2 Answers

Resource (.rc) files are not written in a programming language per se (you can't write loops or conditionals, for example). However, the .rc file format is thoroughly documented by Microsoft at About Resource Files.

like image 74
Greg Hewgill Avatar answered Sep 19 '22 11:09

Greg Hewgill


It's "Windows Resource Script", and there is a reference here: Resource-Definition Statements

like image 23
RichieHindle Avatar answered Sep 17 '22 11:09

RichieHindle