Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Super Contributor
    Join Date
    Mar 2003

    strings and buffers

    Hi ,
    I am working on porting an application from ER5 to Nokia 9210 platform. I have to do a lot of conversions from char* to TDes16, for example when I want to print a char* string in InfoMsg box.
    But the number of classes (TBuf, TDes TPtr, HBuf and there respective 8 and 16 bit versions)and their interconversions are terrifying.

    Pl advice asap on how I can be able to print a simple char string like
    char * abc = "hi how are you?" ;

    in an EPOC message box, to say the least..


    Posted by sweety godbole, meet_ashwini@yahoo.com
    on April 03, 2002 at 10:20

  2. #2
    Super Contributor
    Join Date
    Mar 2003

    RE: strings and buffers

    Posted by MTIT Support, support@mtit1.at
    on April 03, 2002 at 13:30

    Try this:

    _LIT( HiHowAreYouText, "hi how are you?" ) ;
    iEikEnv->InfoWinL( HiHowAreYouText, TPtrC() ) ;


    iEikEnv->InfoWinL( _L("hi how are you?"), TPtrC() ) ;
    if you dont want to use the text in other places.

    The TPtrC() will be changed to any other string.

    Szabolcs Tolnai

Posting Permissions

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