wprintf(L"Selecting Audio Input Device: %s\n",
varName.bstrVal);
if(0 == wcscmp(varName.bstrVal, L"IP Camera [JPEG/MJPEG]"))
{
...
}
hr = CoCreateInstance(CLSID_SampleGrabber, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (void **)&pGrabberF);
The above is from a .cpp file ,but as you see its content is quite c-style.
Will you call it a c or c++ project?
It simply depends how you compile it.
Some code will compile as both, it’s considered C++ code if it gets compiled by a C++ compiler.
C is NOT an exact subset of C++ by the way.
Often you can deduce with a fast glance simply by the file’s extension, although it’s possible to put C code in a .cc extension or .cpp extension and you can also put C++ code in a .c extension, but that would be pretty rare.