Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2009

    A question about String Literal in Symbian

    Today, when I read a subsetion on Literals, I have a question.
    _LIT(KTxtMyStringLiteral, "My string");

    iFilePos += elementBuf16->Length() + KTxtLineDelimiter().Length();

    why string literal in Symbian not like string in c++ standard?
    String in c++ standard is very easy to use.

    why KTxtLineDelimiter should be casted to descriptors?

    Any help would be appreciated!

  2. #2
    Super Contributor
    Join Date
    Mar 2004

    Re: A question about String Literal in Symbian

    string literals are like cost char*. so no way same as String. refer to http://www.newlc.com/en/Using-Symbian-OS-String.html that explains String to Descriptors in general.

Similar Threads

  1. Simple question about Symbian Audio Stream example 2.0
    By huangkuan in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-05-20, 12:57
  2. C++ 學習程序2
    By hanwen813 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 32
    Last Post: 2009-04-02, 09:10
  3. Replies: 5
    Last Post: 2007-08-28, 19:31
  4. String manipulation in Symbian.
    By khurshed79 in forum Symbian
    Replies: 3
    Last Post: 2005-08-09, 07:48
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

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