开发学院手机开发Symbian 开发 Symbian OS S60 3rd platform 开发入门 阅读

Symbian OS S60 3rd platform 开发入门

 2010-03-24 03:56:00 来源:WEB开发网   
核心提示:relinquishing control of that item. By explicitly deleting the item, the Cleanup Stack is left with a dangling pointer to invalid memory?ts subsequent attempt t
relinquishing control of that item. By explicitly deleting the item, the Cleanup Stack is left with a dangling pointer to invalid memory?ts subsequent attempt to delete this memory will cause an access violation.

Developers often forget to adhere to function naming standards?n particular, make sure any functions that can leave have a trailing "L". (Symbian has developed a simple tool called Leavescan to check this for you?his tool will be covered in the Testing section.)

Do not export inline functions, as this causes problems for dependent components at link time. Inline functions should be declared inline and an implementation should be provided in a separate .inl file.

Some of the application objects in a UI application?or example, the CAknApplication-derived object?re created before the Cleanup Stack. If a leave occurs before the Cleanup Stack is created, then the application will crash.

Developers often forget that their applications may eventually be ported to another language, and restrict descriptor sizes. Make sure that any descriptors that hold user-visible text have space to expand when localized, and that any controls that use such text can resize to fit.

Do not ignore compiler warnings. Although your application may still run, warnings often illustrate instances of bad coding practices.

创建或者修改应用程序svg图标的脚本在.mk文件中,一般叫“Icons_scalable_dc.mk”

CFbsBitmap 的 load() 有些时候不好用,比如总是返回错误代码-12。

此时可以换用:

iEikonEnv->CreateBitmapL() 或者

CEikonEnv::Static()->CreateBitmapL()

symbian发生错误会返回错误代码,代码查询网址:

http://wiki.forum.nokia.com/index.php/Symbian_OS_Error_Codes

讲授symbian字符串format的网址:

http://developer.symbian.org/wiki/index.php/Format_Strings

symbian 9 之后出于安全性考虑,引入了Capabilities的概念。比如应用程序需要接入网络,那么该应用程序必须“capability

上一页  1 2 3 4 5 6 7  下一页

Tags:Symbian OS rd

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接