Coder's Guild Mailing List

cannot define a type in a "new-expression"

Posted by ADnoctum on 1999-11-01

Hi, I'm writing a Windows program using Visual C++ 5.0, but I have a problem
with the window class. Here is the code:

class MWindow : public CFrameWnd {
public:
        MWindow( void );
        ~MWindow();

protected:
        afx_msg void OnPaint();
        DECLARE_MESSAGE_MAP()

private:
        CButton *nuevomsg;
};

When I try to compile the file, VC tell me:

error C2462: "MWindow": cannot define a type in a "new-expression".

Why is that? thanks


ADnoctum________________________________________