Debug Messages with Variables

wchar_t ms[50];

swprintf(ms,50,L"The message is %d \n",index); // index is an integer variable

OutputDebugString(ms);