How to convert TPtrC8 to int, if TPtrC8 is a number?
Thanks
and I want to deal with TPtrC8, like deal with string in standard c++. I want to know where to learn the method of dealing with TPtrC8.
Thanks for anyone who help me!
How to convert TPtrC8 to int, if TPtrC8 is a number?
Thanks
and I want to deal with TPtrC8, like deal with string in standard c++. I want to know where to learn the method of dealing with TPtrC8.
Thanks for anyone who help me!
Use TLex8. Example:
HBufC8* tmp = HBufC8::NewL(8);
tmp->Des().Append(_L("123"));
TPtrC8 ptr = tmp->Des();
TInt tmpInt;
TLex8 lex(ptr);
lex.Val(tmpInt); // tmpInt is now 123
delete tmp;