×
Namespaces

Variants
Actions
Revision as of 08:50, 15 December 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Notepad库API的Capability问题

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
hoolee 在 10 Mar 2008 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 开发伙伴平台:

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中得以解决。

This page was last modified on 15 December 2011, at 08:50.
113 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.

×