×

Discussion Board

Results 1 to 2 of 2

Thread: output RInteger

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    12

    output RInteger

    How I can write to console a RInteger variable?
    Thank you for your help!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: output RInteger

    RInteger is not really a number what you really want to see. The closest thing is getting its bytes with BufferLC, and displaying them in hexadecimal form
    Code:
    HBufC8 *bytes=integer.BufferLC());
    for(TInt i=0;i<bytes->Length();i++)
        console->Printf(_L("%0x2"),(*bytes)[i]);
    CleanupStack::PopAndDestroy(); // bytes

Similar Threads

  1. How to create RInteger for RSA
    By BabyKiller in forum Symbian
    Replies: 8
    Last Post: 2011-03-09, 09:54
  2. RInteger close get error
    By lilyaaa in forum Symbian
    Replies: 3
    Last Post: 2010-03-29, 16:24
  3. No output in "TRK Program Output" console
    By Cartouche67 in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-06-18, 08:49
  4. Replies: 4
    Last Post: 2007-09-10, 10:18
  5. Parsing output
    By kkramhoeft in forum Symbian
    Replies: 1
    Last Post: 2003-05-06, 16:39

Posting Permissions

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