How can I convert TPtrC16 into TInt

Login to reply to this topic.
Sun, 2007-09-16 02:04
Joined: 2007-09-04
Forum posts: 19

Hi all,

I have the following query. I have to convert TPtrC16 into Tint. Can you please tell me how do i do that?


Sun, 2007-09-16 17:54
Joined: 2007-06-21
Forum posts: 82
Re: How can I convert TPtrC16 into TInt

TInt myInt;
TPtrC16 myStr(_L("11"));

TLex lex(myStr);
lex.Val(myInt);

myInt will have 11.

Br
G;p
www.mobisy.com

  • Login to reply to this topic.