×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Oct 2010
    Posts
    133

    Question the different between "TUint* iPtr" and "TPtr iPtr"?

    whether I can use the pointer such as"TUint* iPtr;"?if it is allowed,I have a question that what is the different between "TUint* iPtr" and "TPtr iPtr"?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    TPtr is actually a class, where as the TUint* is just pointer.

  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    You can use TUint* iPtr if you want to, but is there a reason you would want to?

    Perhaps you have seen TPtr described as being a pointer and that is what is confusing you, TPtr is not a pointer, it is a class which contains a pointer (to a descriptor).

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    I want to convert TPtr to TUint.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    Search SDK for TLex.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    Quote Originally Posted by Md. Kayesh View Post
    I want to convert TPtr to TUint.
    Basically you should first think about what you want to convert. Is it that you have a buffer that has a number as a string, and you have the TPtr pointer to it, and you would actually want to get that string converted to TUint number so you could use it as a number ?

    if so then check the TLex as suggested, if it is something else that you want, then you should define what it is that you want to do.

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    I got the TPtr by call HBuC:es(). So here i get TUint only using aPtr[i], here "i" meant for index...

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    that would give you the value of the unicode character indeedm if that is the thing you are looking for.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: the different between "TUint* iPtr" and "TPtr iPtr"?

    Also note that HBufC is a descriptor already, just normally it is used as a pointer, so
    HBufC *hbufc -- the pointer variable
    (*hbufc) -- the read-only descriptor
    (*hbufc)[i] -- is the character at position 'i'.

Similar Threads

  1. Is there a way to "edit" and "save" the "texts" of received SMS messages?
    By pamir_yasti in forum General Development Questions
    Replies: 1
    Last Post: 2010-07-16, 10:15
  2. Replies: 3
    Last Post: 2009-06-18, 21:42
  3. "The instruction at "0x0043c30e" referenced memory at "0x00000044".
    By viswanadhr in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-11-08, 07:51

Posting Permissions

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