I am a developer and we have big project that needs to be
converted from winhelp to HTML help. I received only the .CHM help
file from the help auther. I added the HTMLhelp.lib file and
HTMLhelp.h file in to my project. I tried to change atleast one
page of the dialog. I added on helpinfo function htmlhelp function
call and hard coded the .chm file path and for the right click I as
well did the same thing. But I am getting "No Help topic is
associated with this item" upon F1 key and crash after the right
click with wincore.cpp error.
The code is as below.
BOOL CCnvCfgGenNRecPage::OnHelpInfo(HELPINFO* pHelpInfo)
{
// TODO: Add your message handler code here and/or call
default
if (pHelpInfo->iContextType == HELPINFO_WINDOW)
{
int nCtrlId = pHelpInfo->iCtrlId;
DWORD dwContextId = pHelpInfo->dwContextId;
//THE NEW HTMLFUNCTION CALL
::HtmlHelp((HWND)pHelpInfo->hItemHandle,
"D:\\vista_setup\\Patmob\\PatMob.chm",
HH_TP_HELP_WM_HELP,
(DWORD)&IDARRAY(nCtrlId, dwContextId)) ;
/*******************************************************************
THE OLD CODE
::WinHelp ((HWND)pHelpInfo->hItemHandle,
AfxGetApp()->m_pszHelpFilePath,
HELP_WM_HELP,
// HELP_WM_HELP flag brings up pop-up help and expects an
array
// of DWORD pairs of the control ID and the context help ID
(DWORD)&IDARRAY(nCtrlId, dwContextId));
*****************************************/
}
return TRUE;
}
DO I NEED ANY OTHER FILE? Should I checked out the dialog h
file and .hm file which compling the html related code?
Regards,
Kreena