Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:39, 24 June 2008.

Notepad库API的Capability问题

From Forum Nokia Wiki

  • 开发伙伴平台:

S60 3rd Edition S60 3rd Edition, FP1


  • 详细描述

我们可以使用CNotepadAPI::ExecReadOnlyTextViewerL和ExecTextEditorL将文本字符串显示在记事本程序中。


而CNotepadAPI::ExecReadOnlyTextViewerL需要下列能力:ReadDeviceData, WriteDeviceData, ReadUserData和WriteUserData。这些都是文档没有记载的。


CNotepadAPI::ExecTextEditorL方法也需要以上四组能力才能正常工作。如果没有上述Capability,程序也能执行,只是如果在记事本程序菜单中启动“查找”功能的话。那程序将会崩溃掉。


  • 如何重现
CNotepadApi *note = CNotepadApi::NewLC();
  _LIT(text,"Some very long text, Some very long text ");
  note->ExecReadOnlyTextViewerL(text,_L("TITLE"),_L("DELETE?"));
  CleanupStack::PopAndDestroy(note);


  • 解决方案

增加 WriteDeviceData, ReadUserData和WriteUserData能力。上述情况有望在S60第三版FP2手机及SDK中得以解决。

 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX