Home > Software engineering >  Low vs2017 compiled version of the MFC code/engineering/why global variables to abnormal?
Low vs2017 compiled version of the MFC code/engineering/why global variables to abnormal?

Time:11-09

CodePudding user response:

Click retry a newspaper what mistakes, combined with the call stack modification solution

CodePudding user response:


With the current compiler MFC corresponding engineering, new code, comparing to the structure that piece where not the same,

CodePudding user response:

Appcore. CPP line 196 is what

CodePudding user response:

CWinApp class has a default constructor, is used to initialize variables,
You rewrite the constructor, makes some variables can't automatic initialization, will naturally error
CSeaApp invokes the constructor CWinApp

CodePudding user response:

Or cut, 25 to 32 lines put all variable initialization InitInstance () function
  • Related