Symbian C++ 基础之类的类型和声明
2010-03-22 16:20:00 来源:WEB开发网核心提示:TBool int This type should be used for Booleans. For historical reasons, the Symbian C++ TBool type is equivalent to int ETrue=1 and EFalse=0. Since C++ will in
TBool int This type should be used for Booleans. For historical reasons, the Symbian C++ TBool type is equivalent to int ETrue=1 and EFalse=0. Since C++ will interpret any non-zero value as
Note how all these types begin with a capital letter T, which stands for Type, indicating a simple basic type. In addition to the above, simple classes are named beginning with a T as are enums, for example:
类类型
Symbian C++也定义几种
以T开头的值类,这种类不拥有任何外部对象,只是通过指针直接引用或通过句柄间接引用外部对象。
以C开头的基于堆分配的类,这种类全部是从CBase派生过来的。
以R开头的资源类,R类对象包含其它位置拥有资源的句柄。
以M开头的接口类,这种类定义了接口但需要派生类实现。
更多精彩
赞助商链接