Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Information Notes in exe

From Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file: Media:ConsoleUI.zip
Article
Created: savaj (30 Mar 2009)
Last edited: hamishwillee (25 Jul 2012)

Sometime in exe we need to display messages. if we have CONE environment in exe then it is easy to use any information notes/dialogs. But if we do not have CONE environment than we have to use CAknGlobalNote to show information messages.

Libraries needed:

LIBRARY aknnotify.lib eiksrv.lib

Header file needed:

#include <aknglobalnote.h>


Add following code to your exe and just call ShowNotesInExeL() function:

LOCAL_C void ShowNotesInExeL(const TDesC& aMessage)
{
CAknGlobalNote* pNote = CAknGlobalNote::NewL();
TInt noteId = pNote->ShowNoteL(EAknGlobalTextNote,aMessage);
User::After(24000000);
pNote->CancelNoteL(noteId);
delete pNote;
}

Call method ShowNotesInExeL() from exe.

//call function ShowNotesInExeL()
ShowNotesInExeL(_L("Testing Notes in exe"));


Example Code

File:ConsoleUI.zip

Related Links

This page was last modified on 25 July 2012, at 23:05.
67 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.

×