我写了这个简单的常量类方法:的MessageBox在const函数
void CTest::MSGTest() const
{
MessageBox(_T("This is a simple test"));
}
这种方法有一个错误:
The object has type qualifiers that are not compatible with the member function CTest::MessageBoxW
我知道这是因为我用的是常量。如果在执行时没有成员变量被修改,则方法可以是const方法。我想知道MessageBox修改哪些变量以及修改如何显示。
我认为这是处理程序m_hWnd,但我不知道。
'我想知道哪些变量的MessageBox修改以及如何修改manifests.' MFC带有源代码。为什么不看源代码? – PaulMcKenzie 2014-09-25 14:53:45