sizeof
returns the size in bytes but
_itow_s
requires the size in characters. So use
sizeof(re[i].wszRcdInd]) / sizeof(WCHAR)
The size of
wszRcdInd
is 4 characters which can hold decimal number strings from -99 to 999 with trailing NULL character. So you should also ensure that your list box will not contain more than 999 items.