Position:Home>Mobile Development> Symbian system introduction
Symbian system introduction
From;  Author:Stand originally


TBuf<64>Buf;
CEikonEnv: Static()->ReadResource(Buf, r_EXAMPLE_VIEW_TITLE);

Defining a the biggest length first is the buffer of 64, read in a resource that is R_EXAMPLE_VIEW_TITLE next.

Again for example:

" ; of caption of demonstrative window of TText8 *str = (TText8*) "
TPtrC8 Source(Str);IInfoText = HBufC: NewL(Source.Length() );
TPtr16 Ptr = IInfoText->Des();

Define a 8 string Str, construct next Source of constant of a finger, define a 16 finger again according to Source length, did not write here next, but the apparent changeover that should be a Gbk is Unicode.

The resource file of Symbian is patulous name with Rss commonly, without technical resource file editor, the user must open Rss file handiwork to write Rss document with notebook. This has certain regulation and method, referenced example writes his resource document not hard. Need an attention is, if Chinese is included in resource file, must keep the file additionally so the ability that is Utf-8 format but.


Previous 1 2 3 4Next
Previous:What J2ME game develops is advanced optimize skill
Next:WM5.0 simulator uses the network of the PC with AS