well,i did a code like this:
void CProgramDlg::Onperform()
{
int iResult;
iResult = MessageBox("Chooce Yes or No", "question",
MB_YESNO | MB_ICONINFORMATION );
switch(iResult)
{
case MB_NO:
MessageBox("You have choocen no", "no way", MB_OK | MB_ICONINFORMATION);
break;
case MB_YES:
MessageBox("You have choochen yes", "yeees", MB_OK | MB_ICONINFORMATION);
break;
}
}
but it's giving errors like this:
error C2065: 'MB_NO' : undeclared identifier
error C2065: 'MB_YES' : undeclared identifier
error C2051: case expression not constant
error C2051: case expression not constant
i can't understand whats the problem realy?
eny helpful link's are welcome also
Silver
crach@jutukas.com
icq: 97505332
void CProgramDlg::Onperform()
{
int iResult;
iResult = MessageBox("Chooce Yes or No", "question",
MB_YESNO | MB_ICONINFORMATION );
switch(iResult)
{
case MB_NO:
MessageBox("You have choocen no", "no way", MB_OK | MB_ICONINFORMATION);
break;
case MB_YES:
MessageBox("You have choochen yes", "yeees", MB_OK | MB_ICONINFORMATION);
break;
}
}
but it's giving errors like this:
error C2065: 'MB_NO' : undeclared identifier
error C2065: 'MB_YES' : undeclared identifier
error C2051: case expression not constant
error C2051: case expression not constant
i can't understand whats the problem realy?
eny helpful link's are welcome also
Silver
crach@jutukas.com
icq: 97505332