Microsoft KB Archive/264156

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

Article ID: 264156

Article Last Modified on 2/11/2004



This article was previously published under Q264156



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
 * 1) pragma code_page(936)
 * 2) include &quot;chsres.rc&quot;

Keywords: kbinfo kbnls kbresource kblocalization kbdsxglobal2003swept KB264156

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.