Symbian C ++ learning 1

xiaoxiao2021-03-06  25

I don't know anything about Symbian, of course, can only learn from the basis, maybe it is simple to see the foundation. And my people are more old, just learn that this method can only start from the basics. Symbian strings and descriptors: TPTRC, TBUFC, HBUFC is a specific descriptor type derived from TDESC. These two of TPTR and TBUF are derived from TDES, while TDes is derived from TDESC. Therefore, TDES adds some constant convenient functions to TDESC.

TDESC / | / / TBUFCBASE TDES TPTRC | | / TBUFC

, HBUFC TPTRTBUF

TDESC and TDES are abstract classes.

_LIT it combines a symbol and a text value and generates TLITC, the binary form of TLITC is the same as the TBUF's binary form, so the TLITC can be replaced as the TDESC class. _LIT (HE, "HE"); const tdesc & hehe = he;

_L produces a TPTRC and can be used without the name of the name. Const TDESC & H = _L ("HE");

_L and _LIT's difference is that _l needs to open a temporary stack area.

转载请注明原文地址:https://www.9cbs.com/read-65125.html

New Post(0)