Original Post
I''ve started learning C++ about a week or so ago and I''m having a problem. I keep getting an error and I dont know why. Here''s the secion of code:
The error I get is:
error C2065: ''m_bCkenblpgm'' : undeclared identifier
I did this same process with a seperate chek box and it works fine. I dont understand whats wrong with m_bCkenblpgm.
Any help would be great...
void CDay2Dlg::OnCkenblpgm()
{
//////////////
// my code here fo0
//////////////
// Get the current values from the screen
UpdateData(TRUE);
// Is the Enable Message Action check box checked?
if (m_bCkenblpgm == TRUE)
{
// Yes so enable all controls that have anything
// to do with showing the user message
GetDlgItem(IDC_RUNPGM)->EnableWindow(TRUE);
GetDlgItem(IDC_PROGTORUN)->EnableWindow(TRUE);
GetDlgItem(IDC_STATICPGM)->EnableWindow(TRUE);
}
else
{
// No, so disable all contrls that have anything
// to do with showing the user message
GetDlgItem(IDC_RUNPGM)->EnableWindow(FALSE);
GetDlgItem(IDC_PROGTORUN)->EnableWindow(FALSE);
GetDlgItem(IDC_STATICPGM)->EnableWindow(FALSE);
}
}