×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Location
    beijing,china
    Posts
    496

    how to turn content of TPtrC into Tbuf? and SyExpat question.

    how to turn data in TPtrC to a TBuf?
    i use these codes as follow and get user 20 error.
    myTBuf8= *aName.iLocalName.Ptr();
    i can not find example in sdk help and internet. always, tbuf to tptrc.

    i download the syexpat of paul, his example can work without any .h file in his xmlhelper.cpp. but i use these file in my project, MSyDocHandler does not statement error exist. i must include <e32base.h> and "SyExpat.h" in the xmlhelper.cpp, to make it work. i want to know what i forget? it took me several hours and cant understand......
    heaven or dell? survival or death?

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: how to turn content of TPtrC into Tbuf? and SyExpat question.

    Quote Originally Posted by isarc
    how to turn data in TPtrC to a TBuf?
    i use these codes as follow and get user 20 error.
    myTBuf8= *aName.iLocalName.Ptr();
    Try using Copy.

    Code:
                TPtrC aPtr(_L("Hello"));
                TBuf<10> aBuf;
                aBuf.Copy(aPtr);
                User::InfoPrint(aBuf);
    Priju

Similar Threads

  1. problem in parsing xml file using syexpat
    By sunny_singh in forum Symbian
    Replies: 21
    Last Post: 2006-07-17, 11:56

Posting Permissions

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