Oh. I think it might be because you are converting from TCHAR to byte. Try StringValue.Len() * sizeof(TCHAR)
1 Like
Oh. I think it might be because you are converting from TCHAR to byte. Try StringValue.Len() * sizeof(TCHAR)