Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding html help to an existing dialog based application

Adding html help to an existing dialog based application

Scheduled Pinned Locked Moved C / C++ / MFC
helphtmlcom
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harsh_2961
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • H harsh_2961

      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

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you show code Declare of CWnd::HtmlHelp on the MSDN is

      virtual void HtmlHelp(
      DWORD_PTR dwData,
      UINT nCmd = 0x000F
      );


      WhiteSky


      H 1 Reply Last reply
      0
      • H Hamid Taebi

        Can you show code Declare of CWnd::HtmlHelp on the MSDN is

        virtual void HtmlHelp(
        DWORD_PTR dwData,
        UINT nCmd = 0x000F
        );


        WhiteSky


        H Offline
        H Offline
        harsh_2961
        wrote on last edited by
        #3

        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

        H 1 Reply Last reply
        0
        • H harsh_2961

          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

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          What happens if you use of ::HtmlHelp instead HtmlHelp


          WhiteSky


          H 1 Reply Last reply
          0
          • H Hamid Taebi

            What happens if you use of ::HtmlHelp instead HtmlHelp


            WhiteSky


            H Offline
            H Offline
            harsh_2961
            wrote on last edited by
            #5

            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

            H 1 Reply Last reply
            0
            • H harsh_2961

              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

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              See two examples Htmlhelp Forensics[^] and Creating and Using HTML Help in MFC applications [^] I think they are helpfuls for you ;)


              WhiteSky


              H 1 Reply Last reply
              0
              • H Hamid Taebi

                See two examples Htmlhelp Forensics[^] and Creating and Using HTML Help in MFC applications [^] I think they are helpfuls for you ;)


                WhiteSky


                H Offline
                H Offline
                harsh_2961
                wrote on last edited by
                #7

                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

                H 1 Reply Last reply
                0
                • H harsh_2961

                  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

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  See CWinApp::HtmlHelp[^] but see About the HTMLHelp API Function on this link(pszFile and uCommand ) ;)


                  WhiteSky


                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups