So i spent a good portion of today trying to get this code to compile and work:
http://spazzarama.wo...-11-using-api-hooks/I did eventually manage to get it to COMPILE AND RUN (but not work) on windows xp; trying to do so on win7 was an epic adventure in frustration and anger.
I swear I will never ever
ever be able to comprehend how Microsoft managed to make .net building so insanely prone to such an evil convoluted hell of incompatible versions, insane dependency strangeness, UAC pain, and just a general all around insane mess of deployment and execution. They took some very nice language design and made it a cesspool of evilness when you actually want to run the stuff. I have said it a million times -- nothing that Microsoft does makes sense unless you assume that half the employees are saboteurs absolutely devoted like samurai to destroying the company.
Hell is other people's code.
ANYWAY.. I beg you not to embark on trying to get that code to actually build and work (that is capture directx screenshots) -- because i don't want to inflict the pain on you. And I am warning you it requires dlls and installing an additional "assembly" (slimdx).
BUT..
If you do manage to get it to work please let me know, i'd love to modify this to be a standalone commandline c# directx window grabber that I could invoke from my Screenshot Captor tool. (or even better, convert the code to c++).