如何在Symbian程序中显示中文资源
09月 30th, 2007
可以通过以下几步来实现:
1,复制一个xxx.rls字符串文件,改名为xxx31.rls。
2,然后把里面的英文都改成为中文,在头上加入:CHARACTER_SET UTF8
3,用记事本打开,然后另存为UTF-8格式。
4,用UltraEdit打开,在 高级-〉配置-〉常规中点掉“自动检测UTF-8格式文件”。手动删除头上的三个字符。
5,在rss文件头部加入:#ifdef LANGUAGE_01
#include “xxx.rls”
#elif defined LANGUAGE_31
#include “xxx31.rls”
#endif
6,加入到Symbian工程中,修改MMP文件,LANG 01 31,即可编译通过,并生成xxx.r31。
7,修改PKG文件,将原来的RSC后缀名改为R31,注意,_Reg的也要改!
“$(EPOCROOT)Epoc32\data\z\resource\apps\ClockSSConfig.R31″ -”!:\resource\apps\ClockSSConfig.rsc”
就这么简单,赫赫~
Popularity: 8% [?]
Entry Filed under: Symbian开发, Symbian开发技巧
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed