ok now how about this one. When the users enters the correct word, it goes to the error screen. If i entered "OK" where smessage goes, it would give me an error.
Code:
// MESSAGE BOX //////////////////////////////////////
EXPORT void XSDKMESSAGEBOX(LPSTR smessage, LPSTR stitle, LPSTR sicon, LPSTR stype)
{
if(smessage != "")
{
if (stype == "OK")
{
if(sicon == "EXCLAMATION")
{
MessageBox(NULL,smessage,stitle, MB_OK | MB_ICONEXCLAMATION);
}
else if (sicon == "INFORMATION")
{
MessageBox(NULL,smessage, stitle, MB_OK | MB_ICONINFORMATION);
}
else if (sicon == "QUESTION")
{
MessageBox(NULL,smessage, stitle, MB_OK | MB_ICONQUESTION);
}
else if (sicon == "STOP")
{
MessageBox(NULL,smessage,stitle, MB_OK | MB_ICONSTOP);
}
else
{
MessageBox(NULL,"Error Code MBME160: \"LPSTR sicon\" is invalid.", "XSDK Error", MB_OK | MB_ICONSTOP);
}
}
else if (stype == "OKCANCEL")
//..... and so on