Saving/assigning TPtrC to TPtrC
| Thu, 2006-01-05 02:39 | |
|
Can someone help me with this.. i want to assign/save a value, from one TPtrC to another TPtrC. Anyone has the method to do that??
TPtrC Command1 = aLex.NextToken(); TPtrC Variable = aLex.NextToken(); TPtrC Parameter1 = aLex.NextToken(); I need a method to save/assign my Parameter1's value to Variable's value.. Value of Parameter1 will be an integer. Value of Variable will be a string. Thanks in advance |
|






Forum posts: 75
LPTSTR DesCToWcs(TPtrC16 szIn) {
int length = szIn.Length();
LPTSTR szRet = (LPTSTR) malloc((length+1) * sizeof(unsigned short));
int i;
for(i = 0; i < length; i++) {
szRet[i] = szIn[i];
}
szRet[i] = 0;
return szRet;
}
"beer is proof that god loves us, and wants us to be happy!"
Forum posts: 35
As i'm new to symbian OS C++. Can you please modify your codes so that i can use it directly without editing???
thanks a thousand's million.
Forum posts: 75
"beer is proof that god loves us, and wants us to be happy!"