Help file usage
Article Metadata
Step-1: From SDK Help browse to Developer Library » Tools and Utilities » Context-sensitive help guide
step-2:Using this guide create your application related .hlp and .hlp.hrh file
step-3: place this .hlp file c:\system\help folder.
step-3: In your appUi class declared the function
CArrayFix<TCoeHelpContext>* HelpContextL() const
step-4: In your HandleCommandL() method under help menuitem use this code.
CArrayFix<TCoeHelpContext>* buf = CCoeAppUi::AppHelpContextL();
HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), buf);
step-5: code for HelpContextL() method
CArrayFix<TCoeHelpContext>* CMYAPPUI::HelpContextL() const
{
TUid KUidHelpExampleApp; // this is the uid of your .hlp file.
CArrayFixFlat<TCoeHelpContext>* array =
new(ELeave)CArrayFixFlat<TCoeHelpContext>(1);
CleanupStack::PushL(array);
array->AppendL(TCoeHelpContext(KUidHelpExampleApp,KContext1));
CleanupStack::Pop(array);
return array;
//KContext1 is the help context,you get this value from your .hlp.hrh
file
}
step-5: include it in your .pkg file
"app.hlp: -"!:\resource\help\app.hlp"


(no comments yet)