[求助]must have class/struct/union type
void CButtonDlg::OnBtnTest()
{
// TODO: Add your control notification handler code here
//AfxMessageBox("Test button pressed");
static BOOL bSetWaterLevel=TRUE;
if(bSetWaterLevel==TRUE)
{
m_btnVolume.SetWindowText("Water Level");
m_btnAmp.SetWindowText("Record");
bSetWaterLevel=FALSE;
}
else
{
m_btnVolume.SetWindowText("Volume");
m_btnAmp.SetWindowText("Amplify");
bSetWaterLevel=TRUE;
}
}
error C2228: left of '.SetWindowTextA' must have class/struct/union type
error C2228: left of '.SetWindowTextA' must have class/struct/union type
红色的两行是显示有错的两行,但是这两行和上面的一行是一样, 为什么上面的没有错呢,下面就有呢