Capturing screen using GDI is very slow (it barely captures 10 fps).
I have read that DirectX screen capture provides the best speed. I want to test some code to see if it is really fast before start to learn DirectX (I don't want to waste my time learning DirectX and then find out that it is not that fast ).
I have been searching for like 2 hours for a working example of a screen capture code. All I have found is incomplete code (the kind that assumes that you know DirectX and expects you to complete it yourself). For example: http://stackoverflow.com/questions/5069104/fastest-method-of-screen-capturing
Can anyone post a complete working example that will compile without a problem.
I am using Visual C++ 2012 Express on Windows 7 Ultimate x64 and I have installed DirectX 10.