Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 953 Bytes

pragma-directives.md

File metadata and controls

29 lines (21 loc) · 953 Bytes
title description ms.assetid ms.topic ms.date
Pragma Directives
RC does not support the pragma directives supported by the C/C++ compiler.
c7a944c0-a3d4-4568-a9ac-c338f0eaa427
article
05/31/2018

Pragma Directives

RC does not support the pragma directives supported by the C/C++ compiler. However, RC does support the following pragma directive for changing the code page:

#pragma code_page( [ DEFAULT | CodePageNum ] )

This pragma is not supported in an included resource file (.rc). Therefore, if you have a parent .rc file and it includes .rc files for multiple languages, use this pragma before including another .rc file rather than using it in the included .rc file itself. This is demonstrated in the following example.

#include "English.rc"
#pragma code_page(932)
#include "Japanese.rc"

For a list of values for CodePageNum, see Code Page Identifiers.