Adding html help to an existing dialog based application
-
hi i downloaded code to add html help from the link http://www.codeproject.com/useritems/HTMLHelp.asp[^] and when i run it, its giving an error with respect to the line "HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL);" error is "error C2660: 'CWnd::HtmlHelpA' : function does not take 4 arguments" any idea on what to be done to run the program so that i can follow that program to link html help to my application harsha
-
hi i downloaded code to add html help from the link http://www.codeproject.com/useritems/HTMLHelp.asp[^] and when i run it, its giving an error with respect to the line "HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL);" error is "error C2660: 'CWnd::HtmlHelpA' : function does not take 4 arguments" any idea on what to be done to run the program so that i can follow that program to link html help to my application harsha
Can you show code Declare of CWnd::HtmlHelp on the MSDN is
virtual void HtmlHelp(
DWORD_PTR dwData,
UINT nCmd = 0x000F
);
WhiteSky
-
Can you show code Declare of CWnd::HtmlHelp on the MSDN is
virtual void HtmlHelp(
DWORD_PTR dwData,
UINT nCmd = 0x000F
);
WhiteSky
void CTestHelpDlg::OnHelp() { // TODO: Add your control notification handler code here HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL); } and my ".h" file is // TestHelpDlg.h : header file // #if !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_) #define AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CTestHelpDlg dialog class CTestHelpDlg : public CDialog { // Construction public: CTestHelpDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTestHelpDlg) enum { IDD = IDD_TESTHELP_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTestHelpDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CTestHelpDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnHelp(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_) please see the link in my ques for total code.. harsha
-
void CTestHelpDlg::OnHelp() { // TODO: Add your control notification handler code here HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL); } and my ".h" file is // TestHelpDlg.h : header file // #if !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_) #define AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CTestHelpDlg dialog class CTestHelpDlg : public CDialog { // Construction public: CTestHelpDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTestHelpDlg) enum { IDD = IDD_TESTHELP_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTestHelpDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CTestHelpDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnHelp(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_) please see the link in my ques for total code.. harsha
What happens if you use of
::HtmlHelp
insteadHtmlHelp
WhiteSky
-
What happens if you use of
::HtmlHelp
insteadHtmlHelp
WhiteSky
error is gone when i put it.. but on clicking Help button in dialog html help page is not opening.. ? any clue on what to do ? harsha
-
error is gone when i put it.. but on clicking Help button in dialog html help page is not opening.. ? any clue on what to do ? harsha
See two examples Htmlhelp Forensics[^] and Creating and Using HTML Help in MFC applications [^] I think they are helpfuls for you ;)
WhiteSky
-
See two examples Htmlhelp Forensics[^] and Creating and Using HTML Help in MFC applications [^] I think they are helpfuls for you ;)
WhiteSky
Creating and Using HTML Help in MFC applications [^] i am using this onl.. its not happening ..the error i asked intially is coming even when i download this code and run it directly with out any changes in my comp..not able to figure out whats the problem:) harsha
-
Creating and Using HTML Help in MFC applications [^] i am using this onl.. its not happening ..the error i asked intially is coming even when i download this code and run it directly with out any changes in my comp..not able to figure out whats the problem:) harsha
See CWinApp::HtmlHelp[^] but see About the HTMLHelp API Function on this link(pszFile and uCommand ) ;)
WhiteSky