After clicking the interrupt return to this page:
Out of the question seems to be a pointer, but I don't quite understand in this respect, please everyone a great god taught (I was in accordance with the vc + + game development examples of the book)
Added that oneself just looked at it and found that the problem should be out in the code
CodePudding user response:
The couple don't sink ah ~ ~ ~ ~ ~CodePudding user response:
Everyone a great god, online, wait for ~ ~ ~ ~ ~CodePudding user response:
CodePudding user response:
The menu items that add Update_COMMAND_UI command, the state changesCodePudding user response:
You return the returned pMenu pointer is NULL,If you want to check the MenuItem, can add ON_UPDATE_COMMAND_UI () pCmdUI - & gt; Check (TRUE/FALSE);
CodePudding user response:
Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,CodePudding user response:
See you corresponding lines pMain, pMenu pointer is nullCodePudding user response:
PMain pMenu pointer to use before you need to determine whether effectiveIf (pMain)
{
}
If (pMenu)
{
}
CodePudding user response:
PMain or pMenu is null, the handle is invalid