Hi, I have a variable which has value of "Yes" or "No". At this time, I have set the value to "No" but I have a problem. First look at this if statement:
If the value in "Yes", it puts a checkmark, else it does not. But it does put a checkmark and messagebox also says that the value is "No". What do I do to make it work the correct way?PHP Code:if(buffer && "Yes")
{
MessageBox(hwnd, buffer, "D",MB_OK);
CheckDlgButton(hwnd, IDC_LOADATSTARTUP, BST_CHECKED);
}
else
{
CheckDlgButton(hwnd, IDC_LOADATSTARTUP, BST_UNCHECKED);
}




Reply With Quote