Code
int someStrLen;
char Val[10];
if (LOWORD(wParam) == IDC_Byte)
{
GetDlgItemText(hDlg, IDC_Entry2, Val, 10);
if (someStr != NULL)
{
someStrLen = strlen(someStr);
SetDlgItemText(hDlg, IDC_EXIT2, itoa(someStrLen, Val, 10));
}
else
{
SetDlgItemText(hDlg, IDC_EXIT2, "Error");
}
}
Fixed with this : itoa(someStrLen, Val, 10)
I'm in win32 btw, not console