Take screenshot of full-screen applications in C++a

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iconiK
    New Member
    • Dec 2009
    • 1

    Take screenshot of full-screen applications in C++a

    Hello!

    I want to know how to take a screenshot of a full-screen application (that's using DirectX or OpenGL) from my application. I have tried using Qt's built-in feature, but it only remotely works on Windows XP, where I get a black screen. On Windows 7 with Aero I get a little black box in the top left corner. I've looked around for a few days but I'm unable to find anything, except programs that can - but don't have their source-code available.

    Could you help me, please?

    Thanks!
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You can't use:

    1) Call GetDesktopWindo w
    2 )Use the return to call GetDC
    3) Use the return to call Call CreateCompatibl eDC
    4) Use the return to call CreateCompatibl eDC
    5) Then call CreateCompatibl eBitmap
    6) Then call SelectObject
    7) Then call BitBlt

    ?

    Comment

    • george666
      New Member
      • Jul 2008
      • 28

      #3
      You can't use:
      1) Call GetDesktopWindo w


      No.
      Use DX screen capture apis.

      Comment

      Working...