I have this problem.. I wanted to open compiled .hlp file with A session with the Application Architecture server in a AppUI Class.
like this i suppose:
[FONT=Courier New]switch (aCommand)
{
case ...
CArrayFix<TCoeHelpContext>* buf=AppHelpContextL();
RApaLsSession apaSession;
User::LeaveIfError( apaSession.Connect() );
CleanupClosePushL( apaSession );
<This is where The Help should open to a right Context place>
Below is old depricated version of doing this.
//HlpLauncher::LaunchHelpApplicationL( iEikonEnv->WsSession(), buf );
CleanupStack::PopAndDestroy(); // apaSession
break;[/FONT]
This I have:
[FONT=Courier New]CArrayFix<TCoeHelpContext>* CMyAppUi::HelpContextL() const
{
CArrayFixFlat<TCoeHelpContext>* array = new( ELeave )
CArrayFixFlat<TCoeHelpContext>( 1 );
CleanupStack::PushL( array );
array->AppendL( TCoeHelpContext( KUidMyApp, KContextApplication ) );
CleanupStack::Pop( array );
return array;
}[/FONT]