Novice special!
TCHAR lpszYear [8];
TCHAR lpszMonth [4];
TCHAR lpszDay [4];
GetDlgItemText (hDlg, IDC_EDIT1, lpszYear, 8);
GetDlgItemText (hDlg, IDC_COMBO1, lpszMonth, 4);
GetDlgItemText (hDlg, IDC_COMBO2, lpszDay, 4);
How to convert it
lpszYear lpszMonth lpszDay
Online
Reply: Their top one first, anxious
Reply: _tcstoul
Convert strings to an unsigned long-integer value.
But it is best to use GetDlgItemInt
Reply: Agree upstairs
_tcstoul
wcstoul
Both of these functions can be, the same!
No comments:
Post a Comment