- /*
- ============================================================================
- Name : Helloworld.h
- Author : huzhangyou
- Copyright : Your copyright notice
- Description : Exe header file
- ============================================================================
- */
- #ifndef __HELLOWORLD_H__
- #define __HELLOWORLD_H__
- // Include Files
- #include <e32base.h>
- // Function Prototypes
- GLDEF_C TInt E32Main();
- //TInt是函数返回类型
- /*
- http://discussion.forum.nokia.com/forum/showthread.php?p=405566
- S60 3rd以前,主程序是.app文件,是个polymorphic的dll,因此程序入口点是E32Dll;S60 3rd以后,主程序是.exe,是一个单独的process,程序入口点变为E32Main。
- */
- /*
- http://www.cnblogs.com/ren54/archive/2007/10/08/917208.html
- 这些宏被定义在 e32def.h 头文件中,如下:
- #define GLREF_D extern
- #define GLDEF_D
- #define LOCAL_D static
- #define GLREF_C extern
- #define GLDEF_C
- #define LOCAL_C static
- 后缀 _D 和 _C 是 EPOC 的的一个约定,_D 指数据声明(declaration of Data),_C 指代码定义(definition of Code)。
- LOCAL_C 和 LOCAL_D ,被 static 所取代。
- GLREF_C 和 GLREF_D 被指定为全局引用(GLobal REFerence):extern 。
- GLDEF_C 和 GLDEF_D 指定了一个全局定义(GLobal DEFination)。这两个宏没有给出一个固定的定义,但是它们被作为函数和变量的记号。
- */
- #endif // __HELLOWORLD_H__
Symbian Helloworld 分析
最新推荐文章于 2022-02-25 19:38:17 发布