How to typecast?????????
I am having a function like this :
void get(const TDesC& aText)
But I have a variable of type TBuf<8>
I passed like this : get(readbuf);
How i have to typecast it to get the desired output.
Thanx in advance
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.