Hi,
I am beginner in Symbian.
I don't know how to convert HBufC8 type to TDesC type.
the sample code will look like this.
HBufC8* fileBuf = HBufC8::NewLC(fileSize);
TPtr8 fileBufPtr = fileBuf->Des();
User::LeaveIfError(file.Read(fileBufPtr));
DoSomethingL(fileBuf); // Here i am passing HBufC8 type as argument.
But DoSomethingL() function needs TDesC as argument.
So, i want to convert that HBufC8 type buffer into HBufC16 or TDesC16 or TDesC type. otherwise please help me in converting TPtr8 type into TPtrC type.
Please help me.
Thanks in advance,
Jay.