What is the best (easiest) way to take a screenshot of an running application with C++ under Windows?
You have to get the device context of the window (GetWindowDC()) and copy image (BitBlt()) from it. Depending on what else you know about the application you will use different methods to find which window's handle to pass into GetWindowDC().
GetWindowDC()
BitBlt()
1.4m articles
1.4m replys
5 comments
57.0k users