×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    15

    Question how to send object across bluetooth?

    Hi all,

    i have a example which enable me to sent text data across to another phone via bluetooth. i tried to reinterpret_cast<TUint8*> the object into TPtr8, n sent through. the send seems to be working fine, but the receving party seems to have problem to cast the data back to the original object. Is this method the right way to send the object across? i need help urgently,..

    thks

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    124
    TPtr stores the data externally, if you sent the TPtr you will just sent the length and start address of the data, not the data itself.

    Lookat http://www.newlc.com/article.php3?id_article=12 for detailed description about symbian descriptors.

    NOTE: There is an error in HBufC, but it is corrected in the below.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×