Writing data in the file

Login to reply to this topic.
Tue, 2008-06-03 20:22
Joined: 2006-11-22
Forum posts: 73

Hi,

I want to write some data in the file but the problem is the data comes from Data() of class CMMFDataBuffer and it is TDes type and I
dont know how to covert this data in to TDesc format that is taken by Write method of RFile.

Plese tell me how can i write this data.

Thanks


Wed, 2008-06-04 05:03
Joined: 2007-08-02
Forum posts: 26
Re: Writing data in the file

Hi,
Since TDesC16 is the base calss of TDes it should not be aproblem if u pass it the same way.

Wed, 2008-06-04 06:04
Joined: 2007-09-24
Forum posts: 88
Re: Writing data in the file

TDesC16 is an abstract base class for 16-bit descriptors ,
then you do'nt need to convert TDes into TDesC , since both class is inherited from same TDesC16 class

Wed, 2008-06-04 12:08
Joined: 2006-11-22
Forum posts: 73
Re: Writing data in the file

I was doing the same but program abort at this point
may be there is some problem in data not in the method. I just check this....

BTW Thanks for your valuable response

Wed, 2008-06-04 12:35
Joined: 2003-12-05
Forum posts: 672
Re: Writing data in the file

Maybe you just show some code so we do not need to guess what's wrong?

  • Login to reply to this topic.