MessageBox在静态函数里不能使用
error C2352: 'CWnd::MessageBoxA' : illegal call of non-static member function怎么让AfxMessageBox也能实现
MessageBox("不能使用MESSAGEBOX", "操作错误" )呢?
或让MessageBox也能在静态函数或ADO里使用呢?
error C2352: 'CWnd::MessageBoxA' : illegal call of non-static member function怎么让AfxMessageBox也能实现
MessageBox("不能使用MESSAGEBOX", "操作错误" )呢?
或让MessageBox也能在静态函数或ADO里使用呢?
AfxMessageBox是MFC的全局函数,可以在MFC中使用。
要使用API的MessageBox()函数,就要在其前面加上::MessageBox(),这样就可以使用了