Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    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..

    Regards,
    Ash.

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

  2. #2
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    Posted by MTIT Support, support@mtit1.at
    on April 03, 2002 at 13:30



    Hi,
    Try this:

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

    or

    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.

    Brg,
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved