博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月24日

摘要: _LIT、TBuf、HBufC之间的相互转换a: _LIT(lit,"test");b: TBuf<10> tbuf;c: HBufC* hbufc;1.a转b TBuf<10> tbuf(lit); 或: tbuf=lit;2.a转c HBufC* hbufc= HBufC::NewL(lit().Length()); *hbufc=lit(); 或: HBufC* hbufc=lit().AllocL();3.b转c HBufC* hbufc= HBufC::NewL(tbuf.Length()); *hbufc=tbuf;4.c转b tbuf. 阅读全文

posted @ 2011-03-24 20:46 浪端之渡鸟 阅读(388) 评论(0) 推荐(0) 编辑