wprintf(L\"Selecting Audio Input Device: %s\\n\", varName.bstrVal); if(0 == strcmp(varName.bstrVal, \"IP Camera [JPEG/MJPEG]\"))...
My solution:
static const std::wstring IPCamera = L"IP Camera [JPEG/MJPEG]"; if (varName.bstrVal == IPCamera { //...