Symbian S60 如何在界面上显示中文
我在网上找到了这样一个解决方法,这是地址:
http://www.sf.org.cn/Article/symbiandev/200603/17250.html
我用的第二种方法,在编译工程时:WINS的类型是可以编译成功的,但是ARMI就不行了,下面是输出的错误:
..\..\..\7.0S\SERIES60_V21_C\EPOC32\BUILD\SYMBIAN\MYTEST\MYTEST\GROUP\MYTEST\ARMI\UREL\MYTEST.in(../../../7.0S/SERIES60_V21_C/EPOC32/BUILD/SYMBIAN/MYTEST/MYTEST/GROUP/MYTEST/ARMI/UREL/MYTESTCONTAINER.o)(.text+0x4c4):Mytestcontaine: undefined reference to `RFs::Connect(int) '
..\..\..\7.0S\SERIES60_V21_C\EPOC32\BUILD\SYMBIAN\MYTEST\MYTEST\GROUP\MYTEST\ARMI\UREL\MYTEST.in(../../../7.0S/SERIES60_V21_C/EPOC32/BUILD/SYMBIAN/MYTEST/MYTEST/GROUP/MYTEST/ARMI/UREL/MYTESTCONTAINER.o)(.text+0x4c4):Mytestcontaine: relocation truncated to fit: ARM_26 RFs::Connect(int)
make: *** [..\..\..\7.0S\SERIES60_V21_C\EPOC32\RELEASE\ARMI\UREL\MYTEST.APP] Error 1
ERROR: RCMake failed: (Make): make command exited with result 2. (Reason: The system cannot find the file specified.)
Project : error PRJ0019: 工具从 "正在执行生成文件项目操作 "
大家帮解决一下吧,或者有什么显示中文的方法也行.
[解决办法]
在rss文件定义如下:
RESOURCE TBUF r_str0 { buf = "你好 ";}
在cpp文件:
TBuf <32> buf;
iEikonEnv-> ReadResource(buf,R_STR0);
buf就可以用来显示