Read-only archive of the All About Symbian forum (2001–2013) · About this archive

How to open .hlp file with RApaLsSession?

0 replies · 2,595 views · Started 25 August 2004

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]