By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,051 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

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

P: 1

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?

Dec 19 '09 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,197
You can't use:

1) Call GetDesktopWindow
2 )Use the return to call GetDC
3) Use the return to call Call CreateCompatibleDC
4) Use the return to call CreateCompatibleDC
5) Then call CreateCompatibleBitmap
6) Then call SelectObject
7) Then call BitBlt

Dec 20 '09 #2

P: 28
You can't use:
1) Call GetDesktopWindow

Use DX screen capture apis.
Dec 23 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.