Home > Software engineering >  Ask everybody to help me take a look at the code where the wrong
Ask everybody to help me take a look at the code where the wrong

Time:12-10





Sta CMoveStatic *=new CMoveStatic ();//this code position complains of brackets, parentheses after hovering position, hints and a overloading, but I found a ring, didn't find any same function

CMoveStatic is I wrote a base class for CStatic class that is used to move the static text, application to CStatic *=new sta CStatic (); Can run normally, bosses and see what is going wrong? This error message what mean

Below is CMoveStatic header file
 

# pragma once
#include
# include "CustomDlg. H"
# include "Custom. H"

The class CMoveStatic:
Public CStatic
{
~ CMoveStatic ();
CMoveStatic ();

Bool m_Static;

Private:
Public:
DECLARE_MESSAGE_MAP ()
Afx_msg void OnLButtonDown (UINT nFlags, CPoint point);
Afx_msg void OnLButtonUp (UINT nFlags, CPoint point);
Afx_msg void onm ouseMove (UINT nFlags, CPoint point);
Afx_msg void OnWindowPosChanging (WINDOWPOS * lpwndpos);
};

CodePudding user response:

Turned out to be in front of the constructor didn't write the public
Didn't write public, function prompts a heavy, don't have access to private

CodePudding user response:

Bah, I announced the answer, you just said

CodePudding user response:

Does not define the no-arg constructor of the public
  • Related