Code:
int cbarray[20] =
{
"IDC_CHECK1",
"IDC_CHECK2",
"IDC_CHECK3",
"IDC_CHECK4",
"IDC_CHECK5",
"IDC_CHECK6",
"IDC_CHECK7",
"IDC_CHECK8",
"IDC_CHECK9",
"IDC_CHECK10",
"IDC_CHECK11",
"IDC_CHECK12",
"IDC_CHECK13",
"IDC_CHECK14",
"IDC_CHECK15",
"IDC_CHECK16",
"IDC_CHECK17",
"IDC_CHECK18",
"IDC_CHECK19",
"IDC_CHECK20"
;}*/
void checkall()
{int i=0;
for(i=0; i<21 < i++)
{
SendDlgItemMessage(hwnd,cbarray[i], BM_SETSTATE, (WPARAM)TRUE, 0);
}
}
on msdn
http://msdn.microsoft.com/library/de...temmessage.asp
says that the identifier of the control is of type "int"
so i put the identifiers into an array of type int and try to pass into a "for" loop
but doesnt work.......
getting " error C2440: 'initializing' : cannot convert from 'char [12]' to 'unsigned int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast"
any idea??