Article ID: 264156 - Last Review: February 11, 2004 - Revision: 1.1

INFO: Including RC File in Another RC File with a Different Codepage

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article was previously published under Q264156
Expand all | Collapse all

SUMMARY

Including a .rc file within another .rc file may cause problems when the codepages in the two .rc files do not match. For example, if you include a Chinese resource file, Chsres.rc, in an English resource file, the combined resource file may not compile correctly (unless the resource file is on a Chinese platform). In the .rc file, if you do not provide a language and a #pragma statement, the system default is always used.

MORE INFORMATION

To avoid the problem, you must set the language and #pragma statement correctly before you include another .rc file. For example, in the English .rc file, add the following lines before you include the Chinese resource file:
LANGUAGE 04, 02
#pragma code_page(936)
#include "chsres.rc"
				
Keywords: 
kbdsxglobal2003swept kbinfo kblocalization kbnls kbresource KB264156
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.