Home > Software engineering >  Computer graphics experiment, VC6.0 MFC
Computer graphics experiment, VC6.0 MFC

Time:09-24

, hello, I am a college students, undergraduate reading before only learned some basic c + +, such as have not learned what MFC, but computer graphics that requires us to do the experiment course, also can only bite the bullet and do it, but now there are errors, the error code is as follows:
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (108) : error C2653: 'CTestView' : is not a class or the namespace name
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (112) : error C2660: the parameters' GetClientRect: function does not take 1
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (113) : error C2065: 'p0, undeclared identifier
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (113) : error C2228: left of 'x' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (114) : error C2228: left of 'y' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (115) : error C2228: left of 'x' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (115) : error C2228: left of 'x' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (116) : error C2228: left of 'y' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (116) : error C2228: left of 'y' must have a class/struct/union type
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (117) : error C2248: 'OnLButtonDown: always access a protected member declared in the class' CWnd '
C: \ program files \ Microsoft visual studio, vc98, MFC, include \ afxwin h (2352) : see declaration of 'OnLButtonDown'
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (117) : error C2352: 'CWnd: : OnLButtonDown: illegal call of non - static member function
C: \ program files \ Microsoft visual studio, vc98, MFC, include \ afxwin h (2352) : see declaration of 'OnLButtonDown'
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (120) : error C2653: 'CTestView' : is not a class or the namespace name
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (124) : error C2660: the parameters' GetClientRect: function does not take 1
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (125) : error C2065: 'p1: undeclared identifier
C: \ program files \ Microsoft visual studio \ myprojects \ test2 \ test2view CPP (125) : error C2228: left of 'x' must have a class/struct/union type
: the error C2228: left of 'y' must have a class/struct/union type
: the error C2660: 'GetDC' : the function does not take 0 parameters
The error C2228: left of 'x' must have a class/struct/union type
: the error C2228: left of 'x' must have a class/struct/union type
The error C2228: left of 'y' must have a class/struct/union type
: the error C2228: left of 'y' must have a class/struct/union type
The error C2228: left of 'x' must have a class/struct/union type
The error C2228: left of 'x' must have a class/struct/union type
: the error C2228: left of 'x' must have a class/struct/union type
The error C2228: left of 'x' must have a class/struct/union type
: the error C2228: left of 'y' must have a class/struct/union type
The error C2228: left of 'y' must have a class/struct/union type
The error C2228: left of 'y' must have a class/struct/union type
The error C2228: left of 'y' must have a class/struct/union type
The error C2065: 'MBCircle: undeclared identifier
Error C2660: 'ReleaseDC function does not take the parameters 1
Error C2248: 'OnLButtonUp: always access a protected member declared in the class' CWnd '
See declaration of 'OnLButtonUp'
: the error C2352: 'CWnd: : OnLButtonUp' : illegal call of non - static member function
: see declaration of 'OnLButtonUp'
The error C2653: 'CTestView' : is not a class or the namespace name
The error C2373: 'MBCircle' : redefinition; The company type modifiers
The error C2065: 'CirclePoint: undeclared identifier
: the error C2653: 'CTestView' : is not a class or the namespace name
: the error C2373: 'CirclePoint' : redefinition; The company type modifiers
The error C2228: left of 'x' must have a class/struct/union type
The error C2228: left of 'x' must have a class/struct/union type
: the error C2228: left of 'y' must have a class/struct/union type
: the error C2228: left of 'y' must have a class/struct/union type
: the error C2065: 'Round' : undeclared identifier


This is the code, I also don't know I posted is not complete, all is not complete, please leave a message I immediately added
//test2View. CPP: implementation of the CTest2View class 
//

# include "stdafx. H"
# include "math. H"
# include "P2. H"
# include "test2. H"

# include "test2Doc. H"
# include "test2View. H"

# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILE
The static char THIS_FILE []=__FILE__;
# endif

/////////////////////////////////////////////////////////////////////////////
//CTest2View

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related