I've spent almost a week reading the sdk manual and trying out the given samples. I'm running a windows 10 machine with visual studio 2017. I was able to successfully build and run all samples. However I'm still struggling to write my own code.
1) After including and linking all the files in the "include" folder provided by the sdk to my project, the build fails. I get the errors
- Code: Select all
MIDL202 syntax error: expecting a type specification near "HRESULT"
MIDL202 cannot recover from earlier syntax error; aborting compilation.
My code file is empty, I just wanted to see if the solution builds just by including the files provided.
It would be helpful if someone can provide a step by step guide on how to start the project since the sdk manual doesn't say much.
2) It would also be helpful if someone writes a simple code just to capture a frame from a video stream. A lot of people in this forum are currently struggling to start from scratch.