LOCAL_C, LOCAL_D, GLDEF_C please help

Login to reply to this topic.
Wed, 2007-12-26 11:11
Joined: 2007-12-23
Forum posts: 2

Dear all,
These problems i faced while creating Symbian Console based applications for S60 platform.'

1) Can you please tell me the difference between LOCAL_C, LOCAL_D and GLDEF_C?

2) Whenever i write any class of my own, should i start it always from MainL() or from E32Main()?

3) When i create any class of my own (not any inbuilt class) is it mandatory to always include the
class template in the .h (header file) and the definition in .cpp file? Or does it violate the coding
standards, if i include the whole class definition in the .cpp itself?

4) Once i tried to call a class (create object) from MainL ( ) function whose prototype i gave in a
separate header file. It gave an error message. The error was rectified when i mentioned
MainL( ) as GLDEF_C, and all other functions which calls MainL( ) as also GLDEF_C.
Can you please explain me why is it so?

Please help me, i am a beginner to Symbian and need all your help.

Thanking You,
Raj Kumar Sanpui


Raj Kumar Sanpui,
Mobile Devices Solutions,
Motorola India Pvt. Ltd


Thu, 2007-12-27 06:48
Joined: 2007-09-20
Forum posts: 95
Re: LOCAL_C, LOCAL_D, GLDEF_C please help

Hi,

Concerning Q1 you can find the definition of these macros in e32def.h file.

Whenever i write any class of my own, should i start it always from MainL() or from E32Main()?

What does this mean?

Q3 and Q4 are not specific to Symbian. It is more concerned about how you organize your code in c++. Search in the net, you shall find a number of topic related to this.

Wishing you a very Happy new year in advance Smiling


Chao,
Raghav

  • Login to reply to this topic.