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. Class is not recognized, even if header file included

Class is not recognized, even if header file included

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 Posts 3 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.
  • S Offline
    S Offline
    SanjaySMK
    wrote on last edited by
    #1

    Hello, I am facing a unique problem, that even if I include the header file, yet the class is not recognized. It gives me the error missing ; before (some variable) and errors generated subsequently. Please help. Thanks and regards,

    Software Developer Sanjay Khapre

    P C 2 Replies Last reply
    0
    • S SanjaySMK

      Hello, I am facing a unique problem, that even if I include the header file, yet the class is not recognized. It gives me the error missing ; before (some variable) and errors generated subsequently. Please help. Thanks and regards,

      Software Developer Sanjay Khapre

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      See if class declaration is suppressed by some preprocessors. Can you show how class is declared,included and used ?

      Prasad Notifier using ATL

      1 Reply Last reply
      0
      • S SanjaySMK

        Hello, I am facing a unique problem, that even if I include the header file, yet the class is not recognized. It gives me the error missing ; before (some variable) and errors generated subsequently. Please help. Thanks and regards,

        Software Developer Sanjay Khapre

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        It is difficult to help without actually seing the code. Post the code for the class declaration and where it is used. You probably forgot to add ; at the end of the class or you mispelled the name (remember it is case-sensitive).


        Cédric Moonen Software developer
        Charting control [Updated - v1.1]

        S 1 Reply Last reply
        0
        • C Cedric Moonen

          It is difficult to help without actually seing the code. Post the code for the class declaration and where it is used. You probably forgot to add ; at the end of the class or you mispelled the name (remember it is case-sensitive).


          Cédric Moonen Software developer
          Charting control [Updated - v1.1]

          S Offline
          S Offline
          SanjaySMK
          wrote on last edited by
          #4

          Hello, I have attached the code. I have a dialog box in which I am placing a RichEdit box as a child window control. Without creating an object of RichEdit, how can I set its position inside its parent, that is the dialog box? # include "MyRichEdit.h" class CMyRichEdit ; ///////////////////////////////////////////////////////////////////////////// // CTrialRichEditBreakDlg dialog class CTrialRichEditBreakDlg : public CDialog { // Construction public: CMyRichEdit m_RichEdit ; CTrialRichEditBreakDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTrialRichEditBreakDlg) enum { IDD = IDD_TRIALRICHEDITBREAK_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTrialRichEditBreakDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CTrialRichEditBreakDlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnDrawCircle(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; Thanks a ton. And what about my previous query posted, that is of not being able to trap F9 key in this same application, I have explained it in my previous query. Sanjay. -- modified at 5:44 Wednesday 23rd August, 2006 -- modified at 5:50 Wednesday 23rd August, 2006 -- modified at 6:01 Wednesday 23rd August, 2006

          Software Developer Sanjay Khapre

          P 1 Reply Last reply
          0
          • S SanjaySMK

            Hello, I have attached the code. I have a dialog box in which I am placing a RichEdit box as a child window control. Without creating an object of RichEdit, how can I set its position inside its parent, that is the dialog box? # include "MyRichEdit.h" class CMyRichEdit ; ///////////////////////////////////////////////////////////////////////////// // CTrialRichEditBreakDlg dialog class CTrialRichEditBreakDlg : public CDialog { // Construction public: CMyRichEdit m_RichEdit ; CTrialRichEditBreakDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTrialRichEditBreakDlg) enum { IDD = IDD_TRIALRICHEDITBREAK_DIALOG }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTrialRichEditBreakDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CTrialRichEditBreakDlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnDrawCircle(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; Thanks a ton. And what about my previous query posted, that is of not being able to trap F9 key in this same application, I have explained it in my previous query. Sanjay. -- modified at 5:44 Wednesday 23rd August, 2006 -- modified at 5:50 Wednesday 23rd August, 2006 -- modified at 6:01 Wednesday 23rd August, 2006

            Software Developer Sanjay Khapre

            P Offline
            P Offline
            prasad_som
            wrote on last edited by
            #5

            where it is giving error ? If Its CMyRichEdit.. , you need to show its declaration header file.

            Prasad Notifier using ATL

            S 1 Reply Last reply
            0
            • P prasad_som

              where it is giving error ? If Its CMyRichEdit.. , you need to show its declaration header file.

              Prasad Notifier using ATL

              S Offline
              S Offline
              SanjaySMK
              wrote on last edited by
              #6

              Which I have already done. Didn't you see the first line?

              Software Developer Sanjay Khapre

              P 1 Reply Last reply
              0
              • S SanjaySMK

                Which I have already done. Didn't you see the first line?

                Software Developer Sanjay Khapre

                P Offline
                P Offline
                prasad_som
                wrote on last edited by
                #7

                SanjaySMK wrote:

                Didn't you see the first line?

                Yes , I seen it. But I wanted you to show, header containing class declaration of CMyRichEdit.. Which you included as first line

                Prasad Notifier using ATL

                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