Read-only archive of the All About Symbian forum (2001–2013) · About this archive

difference between Hbuf8, TPtr8....

1 replies · 1,910 views · Started 05 July 2005

Hello,
i have a problem to unterstand the difference between:
- HBuf8
-TPtr8
- unsigned char

Can anybody explain me the difference and the advantage of one of them ?

Thanks.. Michael

ivolein wrote:Hello,
i have a problem to unterstand the difference between:
- HBuf8
-TPtr8
- unsigned char

Can anybody explain me the difference and the advantage of one of them ?

Thanks.. Michael

hbuf is a mod basically uses memory from the heap unlike tbuf that uses stack memory
tptr is a pointer to the hbuf object created...
adv is that one can de-allocate the memory after using the delete function

the following links may help u wid descriptors, but the best way is to read the sdk documentation provided, and look at sample codes

http://www.newlc.com/article.php3?id_article=773
http://www.newlc.com/article.php3?id_article=12