Home > Back-end >  In a class definition in MFC objects of another class, just can't pass, the error: 2019.
In a class definition in MFC objects of another class, just can't pass, the error: 2019.

Time:09-28

Visual Studio 2019 c + +

CodePudding user response:

CodePudding user response:

Epsilon=(' &western ` *))) well, today is really, the second day in C S D N Posting, almost solve the problem,,,,,,,
Orz, sprout new what all don't understand, so the question very rz,,,,,,,,

CodePudding user response:

CGame () {}; Is not defined, it is less a {},,,,,,,,,,,,,, 1, 88.

CodePudding user response:

Help themselves, and others may not put may want to ask when you have time,
Besides, you send this code is not complete, not give CGame class definition code, who know is less the constructor definition, or the constructor to write the wrong less {}?

CodePudding user response:

The
refer to the original poster sh_A_dow response:
Visual Studio 2019 c + +

But tomorrow's book club ha ha

CodePudding user response:

reference 5 floor qq_46221910 reply:
Quote: refer to the original poster sh_A_dow response:
Visual Studio 2019 c + +

But tomorrow's book club haha

The forehead (︶ ︿ ︶)=yes, as a freshman meng xin, without programming experience for class a week ago, the basic teaching, discovering something to practice themselves,

CodePudding user response:

In fact there is no need to include in the first file, include in CPP file, class declaration in the header file CGame can

CodePudding user response:

refer to 7th floor Behard response:
in fact, there is no need to include the head file, include in CPP file, class declaration in the header file CGame can

Oh oh, that is, according to my diagram view, include "CGame. H" on MainFrm. CPP, MainFrm. H can need not, thank you!

CodePudding user response:

refer to 7th floor Behard response:
in fact, there is no need to include the head file, include in CPP file, class declaration in the header file CGame can

Don't need to use a pointer? Almost I believed,
  • Related