Which way is the correct way to handle this.
TCHAR szString[100];
1. ZeroMemory(&szString, sizeof(szString));
2. ZeroMemory(&szString, sizeof(TCHAR) * sizeof(szString));
3. Something else all together.
Which way is the correct way to handle this.
TCHAR szString[100];
1. ZeroMemory(&szString, sizeof(szString));
2. ZeroMemory(&szString, sizeof(TCHAR) * sizeof(szString));
3. Something else all together.