I downloaded the sample grabber project and put it into my system. (I am using Enterprise VS.) I opened the CaptureTest-2005 solution, converted it to the VS2010 solution, and downloaded it. After downloading the CaptureTest-2005 solution, I still saw the files that had the same problem as you.
So, I found that although the CaptureTest-2005 project did not have the DSHOWNET defined on the build page, the DirectX.Capture-2005 project did. Thus, for all files in DirectX.Capture-2005 DSHOWNET directive is evaluated as true and, therefore, elements inside the #if DSHOWNET directives are #if DSHOWNET .
I'm not sure the solution just requires you to build and use the DSHOWNET part of CodeProject's download (for example, I'm not sure if DirectX.Capture is DirectX.Capture ), but I suppose, since the DirectX.Capture project determined that you would need to create and use this assembly to run the project. (Perhaps there is a way around this, I havenโt gone that far. I would recommend checking the project page to see if there is information about what depends on it.)
Hope this helps!
source share