Discussion Board
-
How to typecast?????????
2004-08-29, 13:27
#1
Registered User
Dear friends,
I am having a function like this :
void get(const TDesC& aText)
{
}
But I have a variable of type TBuf<8>
that is,
TBuf8<6> readbuf;
I passed like this : get(readbuf);
How i have to typecast it to get the desired output.
Thanx in advance
urs,
ram
-
Nokia Developer Expert
can you define your variable as TBuf, instead of TBuf8. Then it would work.
Othervise you could make either HBufC or TBuf type of temporal variable that you use when supplying the string to the function.
yucca
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules