首页 > 解决方案 > 如果代码正确,为什么我在 OK 按钮上会出现这些错误?

问题描述

我已准备好测试对话框,但照片中出现错误。为什么 ?

错误

标签: c++visual-studiomfc

解决方案


也许OnOK而不是OnOk

CDialog::OnOK   Override to perform the OK button action in a modal dialog box. The default closes the dialog box and DoModal returns IDOK.

推荐阅读