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
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,
The help file is launched, but i also receive "Failed to launch help" messagebox. Does anyone know why this messagebox pops up?
Thanks
What does "m_pszHelpFilePath" contain when you debug and see?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi,
The value of m_pszHelpFilePath when i debug is "C:\Program Files\x\tsw.chm
The value of m_pszHelpFilePath when i debug is "C:\Program Files\x\tsw.chm
ASKER
i found out that it's because F1 is called twice. i solved the problem by googling this on the internet...