×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:CContactDatabase::DeleteDefaultFileL()总是返回错误代码-14 KErrInUse

From Nokia Developer Wiki
Jump to: navigation, search
bogdan.galiceanu (Talk | contribs)
m
hamishwillee (Talk | contribs)
m (Hamishwillee - Automated change of category from Lang-CN to Unlikely Category)
Line 29: Line 29:
 
尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。
 
尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。
  
[[Category:CN Symbian C++]][[Category:Lang-CN]]
+
[[Category:Symbian C++]][[Category:Lang-Chinese]]

Revision as of 04:16, 26 July 2011

KIS000774


  • 开发伙伴平台:

S60 3rd Edition, S60 3rd Edition FP1


  • 详细描述

CContactDatabase::DeleteDefaultFileL()这个静态方法总是返回错误代码-14,KErrInUse


  • 如何解决

S60第三版/S60第三饭,FP1文档(SDK帮助)声明静态函数CContactDatabase::DeleteDefaultFileL()删除了缺省的联系人数据库,但它总是返回错误-14,KErrInUse.


下列API都返回同样的错误:

 CContactDatabase::GetDefaultNameL(defaultDb);
 
CContactDatabase::DeleteDatabaseL(defaultDb);


  • 如何重演

写一个程序完成CContactDatabase::DeleteDefaultFileL(), 在手机端运行,检查其返回值


  • 解决方案

尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。

235 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×