Just output the newline in a separate call to OutputDebugStringW
:
OutputDebugStringW(Item.pItem);
OutputDebugStringW(L"\n");
If for some reason you only want to make a single call to OutputDebugStringW
, build a string first:
std::wstringstream ss;
ss << Item.pItem << L"\n";
OutputDebugStringW(ss.str().c_str());