Click here to Skip to main content
15,890,185 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Show Console + ShowDialog [modified] Pin
User 5838522-Oct-06 20:47
User 5838522-Oct-06 20:47 
GeneralRe: Show Console + ShowDialog Pin
bankai1232-Oct-06 21:15
bankai1232-Oct-06 21:15 
GeneralRe: Show Console + ShowDialog Pin
User 5838522-Oct-06 21:18
User 5838522-Oct-06 21:18 
GeneralRe: Show Console + ShowDialog Pin
bankai1233-Oct-06 13:47
bankai1233-Oct-06 13:47 
Questionopengl problem Pin
Arif Liminto1-Oct-06 22:08
professionalArif Liminto1-Oct-06 22:08 
AnswerRe: opengl problem Pin
Christian Graus1-Oct-06 23:49
protectorChristian Graus1-Oct-06 23:49 
QuestionManaged C++ Winforms using MouseEnter/Leave Pin
sirokket161-Oct-06 14:54
sirokket161-Oct-06 14:54 
QuestionDevice contexts / hWnd's Pin
zzattack1-Oct-06 9:45
zzattack1-Oct-06 9:45 
I want a screenshot from a game that's running. I dove into trying it all out just today, but I've read a whole lot of c++ and MC++ (not CLI) before.

I retrieve the process using System::Diagnostics::Process, and then use the method MainWindowHandle and that just works fine. I've googled for 3 hours, but I can't find a true .NET way of accomplishing taking the screenshot of a given hWnd. What I think I need to do:
- create a new device context
- get the device context from the hWnd I've already got
- use a bitblt function to copy the screen to the newly created DC
- save the DC to a file.


I've been looking around in System::Drawing::CopyFromScreen, but to no avail. Any help on getting started with this would be enourmously appreciated, as I have no clue which functions to use and in which namespaces they reside. Thanks in advance.

Frank
AnswerRe: Device contexts / hWnd's Pin
Christian Graus1-Oct-06 10:04
protectorChristian Graus1-Oct-06 10:04 
GeneralRe: Device contexts / hWnd's Pin
zzattack1-Oct-06 10:08
zzattack1-Oct-06 10:08 
GeneralRe: Device contexts / hWnd's Pin
Christian Graus1-Oct-06 10:17
protectorChristian Graus1-Oct-06 10:17 
GeneralRe: Device contexts / hWnd's [modified] Pin
zzattack1-Oct-06 10:34
zzattack1-Oct-06 10:34 
QuestionNew To C++ Need Help ---- Buttons On Form Apps Pin
Mark_Murphy1-Oct-06 7:11
Mark_Murphy1-Oct-06 7:11 
AnswerRe: New To C++ Need Help ---- Buttons On Form Apps Pin
Christian Graus1-Oct-06 10:06
protectorChristian Graus1-Oct-06 10:06 
QuestionGetting audio signal.. Please help Pin
Commickey30-Sep-06 1:12
Commickey30-Sep-06 1:12 
AnswerRe: Getting audio signal.. Please help Pin
Christian Graus1-Oct-06 10:07
protectorChristian Graus1-Oct-06 10:07 
QuestionAuthoritative .Net 2.0 Library Development Reference? Pin
mike montagne29-Sep-06 12:33
mike montagne29-Sep-06 12:33 
QuestionDoc/View-like plugin DLLs in C++/CLI Pin
Bartosz Bien29-Sep-06 12:04
Bartosz Bien29-Sep-06 12:04 
AnswerRe: Doc/View-like plugin DLLs in C++/CLI Pin
led mike3-Oct-06 5:15
led mike3-Oct-06 5:15 
GeneralRe: Doc/View-like plugin DLLs in C++/CLI Pin
Bartosz Bien12-Oct-06 22:54
Bartosz Bien12-Oct-06 22:54 
GeneralRe: Doc/View-like plugin DLLs in C++/CLI Pin
led mike13-Oct-06 4:48
led mike13-Oct-06 4:48 
Questionautomatic installation of the cab on the pocket pc Pin
canadaeve29-Sep-06 9:54
canadaeve29-Sep-06 9:54 
QuestionClass Reference Variables in Managed C++? Pin
mike montagne28-Sep-06 18:38
mike montagne28-Sep-06 18:38 
AnswerRe: Class Reference Variables in Managed C++? Pin
User 58385228-Sep-06 18:50
User 58385228-Sep-06 18:50 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
mike montagne28-Sep-06 20:12
mike montagne28-Sep-06 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.