I am currently having problems trying to print successfully to a text file via the

GetDlgItemText(hWnd, NAME, name, sizeof(name) / sizeof(TCHAR));

function. I have declared a TCHAR name[36] variable, and every time the function is executed above it prints out this

面面面面面面面面面面面面面面面面面面面面面面面面面 面面面面面面面面面DWRER

DWRER being a relative response. Does anyone know what could be wrong?