I got problem with converting QString to TDesC8
this is my block-code:
QString key = "abcdef0123456789";
TPtrC8 dataPtrKey(reinterpret_cast<const TUint8*>(key.toUtf8().constData()));
TBufC8 *iKey = HBufC8::NewLC(dataPtrKey.Length());
Compiling process was success.
But, when I open my program in Symbian Emulator and entering that block-code, my program was exit.
What's wrong with my code?