Link to home
Start Free TrialLog in
Avatar of TungVan
TungVan

asked on

Failed to launch help

Hi,
I want to launch a .chm help file within my application. I use htmlhelp() function. This is how i use it:

::HtmlHelp(pFrame->m_hWnd, m_pszHelpFilePath, HH_DISPLAY_TOPIC, NULL);

The help file is launched, but i also receive "Failed to launch help" messagebox. Does anyone know why this messagebox pops up?

Thanks
Avatar of Vinayak Kumbar
Vinayak Kumbar

What does "m_pszHelpFilePath" contain when you debug and see?
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TungVan

ASKER

hi,
The value of m_pszHelpFilePath when i debug is "C:\Program Files\x\tsw.chm
Avatar of TungVan

ASKER

i found out that it's because F1 is called twice. i solved the problem by googling this on the internet...