const wchar_t* default_message = L"Default message from client"; wchar_t lpszWrite[4096]; swprintf_s(lpszWrite, 4096, L"%s", default_message); wprintf(L"lpszWrite: %Ls\n", lpszWrite);