Class is not recognized, even if header file included
-
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
-
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
See if class declaration is suppressed by some preprocessors. Can you show how class is declared,included and used ?
Prasad Notifier using ATL
-
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
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] -
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]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, 2006Software Developer Sanjay Khapre
-
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, 2006Software Developer Sanjay Khapre
where it is giving error ? If Its CMyRichEdit.. , you need to show its declaration header file.
Prasad Notifier using ATL
-
where it is giving error ? If Its CMyRichEdit.. , you need to show its declaration header file.
Prasad Notifier using ATL
-
Which I have already done. Didn't you see the first line?
Software Developer Sanjay Khapre
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