porting 8.1 to 9.x (ReadL)
| Wed, 2008-01-23 05:42 | |
|
hi all i am porting the code written in 8.1 to 9.x am facing problem in the below piece of code TInt res; I know the above api's has been depre can u please let me know any alternative to implement the same.. thanks in advance amjed |
|






cated in 9.x
Forum posts: 95
The singnature of "ReadL" method is
void RMessagePtr2::ReadL(TInt aParam, TDes16 &aDes, TInt aOffset=0)So instead specifying "pD" in ReadL, the index of the descriptor argument should be specified.
Inyour case index=0 (since reading first argument)
HBufC8* writeBuf=HBufC8::New(desLen);TPtr initptr = writeBuf->Des();
TRAP(res,Message().ReadL(0,initptr));
Chao,
Raghav