To Find a Character in HBufC8
| Thu, 2007-09-27 19:32 | |
|
I am using HBufC8 in the following code snippet: if I use *opaquedata.Find(substring), It is giving compilation errors. How do I find the substring in HBufC8 |
|
| Thu, 2007-09-27 19:32 | |
|
I am using HBufC8 in the following code snippet: if I use *opaquedata.Find(substring), It is giving compilation errors. How do I find the substring in HBufC8 |
|
Forum posts: 72
What is type of substring? it should be TDesC if you use Find().
Forum posts: 19
The Type of the substring is Lieral value.
e.g. _LIT(Substring, "" );
can u please tell the code snippet
Forum posts: 78
You need to make it a _LIT8
Forum posts: 286
1. What does OpaqueData() returns? If it is returning a descriptor why you want to make a copy of that?
2. The way you are calling find is wrong. You are calling as *opaquedata.Find but opaquedata is a pointer. So you should be calling opaquedata->Find.
Cheers,
Sri