Error in using RFile::Seek()

Login to reply to this topic.
Wed, 2007-08-29 10:45
Joined: 2007-07-31
Forum posts: 159

Hi,
can anybody tell me why the following line
User::LeaveIfError(file.Seek(ESeekStart,0));
gives following error?

Error : function call '[RFile].Seek(TSeek,int)' Does not match


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++


Wed, 2007-08-29 11:01
Joined: 2004-05-24
Forum posts: 982
Re: Error in using RFile::Seek()

Because the signature is RFile::Seek(TSeek, TInt&);
How literal 0 can be a TInt& ?

You have to do it like this:
TInt myInt = 0;
User::LeaveIfError(file.Seek(ESeekStart,myInt));


pirosl

Wed, 2007-08-29 11:27
Joined: 2007-07-31
Forum posts: 159
Re: Error in using RFile::Seek()

oh ! sorry i was doing mistake.....because the line was written in a symbian book named Developing series 60 Application
By Leigh Edwards,Richard Baker on the page no 151


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Wed, 2007-08-29 14:06
Joined: 2007-07-31
Forum posts: 159
Re: Error in using RFile::Seek()

Hi, can you tell me learning J2ME is good or Symbian C++? As am beginner in Symbian C++ which is best accordding to the future?

Please tell me....
Thank you....

Brajesh...


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Thu, 2007-08-30 22:48
Joined: 2006-09-18
Forum posts: 68
Re: Error in using RFile::Seek()

Both has its advantages. Symbian C++ is faster(I think), it should be, and you have better access to the phones features, J2ME is more portable, same code can be used on Windows Mobile, Symbian or any J2ME enabled phone. Therefore the same program will have a larger clientbase.

Tue, 2007-10-09 08:22
Joined: 2007-07-31
Forum posts: 159
Re: Error in using RFile::Seek()

According to the money which is better J2ME or Symbian C++?


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Tue, 2007-10-09 09:33
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: Error in using RFile::Seek()

If you are speaking of money (and thus time), Java is probably better. Symbian C++ is (a lot) more powerful however and the only way to be tightly integrated into the system (and/or to access all the APIs of the phone).


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Tue, 2007-10-09 10:48
Joined: 2007-07-31
Forum posts: 159
Re: Error in using RFile::Seek()

Should i make carrier in Symbian C++?Is good future in this field?


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Tue, 2007-10-09 11:02
Joined: 2004-05-24
Forum posts: 982
Re: Error in using RFile::Seek()

Hehehe...is like asking: "if I'll become a Symbian developer, will I be rich and happy?" Smiling.
The answer is...we don't know.
Right now the Symbian world is quite hot...a lot of things are happening arround...but this will not necesary assure you a good future.
My advise to you would be: do what you like and do it as best as possible. The rest will come eventually Eye-wink


pirosl

Tue, 2007-10-09 11:54
Joined: 2007-07-31
Forum posts: 159
Re: Error in using RFile::Seek()

Hey !!!!!!!!!!!!!!!
What a good answer.........................

hmmmmmmmmmmmmm.......

Thanks..........


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

  • Login to reply to this topic.