Click here to Skip to main content
16,005,121 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: need help please Pin
Christian Graus11-Oct-05 4:11
protectorChristian Graus11-Oct-05 4:11 
AnswerRe: need help please Pin
Christian Graus16-Oct-05 9:42
protectorChristian Graus16-Oct-05 9:42 
QuestionProblems when drawing a font with OpenGL Pin
Alex Cutovoi10-Oct-05 6:31
Alex Cutovoi10-Oct-05 6:31 
QuestionScreen capture in C++ Pin
Alex Cutovoi10-Oct-05 6:23
Alex Cutovoi10-Oct-05 6:23 
AnswerRe: Screen capture in C++ Pin
John M. Drescher10-Oct-05 6:55
John M. Drescher10-Oct-05 6:55 
AnswerRe: Screen capture in C++ Pin
John M. Drescher10-Oct-05 7:07
John M. Drescher10-Oct-05 7:07 
GeneralRe: Screen capture in C++ Pin
Alex Cutovoi10-Oct-05 8:14
Alex Cutovoi10-Oct-05 8:14 
GeneralRe: Screen capture in C++ Pin
Christian Graus10-Oct-05 8:43
protectorChristian Graus10-Oct-05 8:43 
Alex Cutovoi wrote:
newBitmap = bitmap;

This seems redundant to me.

This leaks memory ( you need to catch the HBITMAP returned by select object and put it back in, you need to delete your DC and any HBITMAP you're not going to return ), but off the top of my head, it looks pretty much right, in that it should work.


Alex Cutovoi wrote:
HWND screenHwnd;
HDC screenHdc;
HDC copyHdc;
HBITMAP newBitmap;


There is no reason to create these before the moment you assign their value, and it's bad to have variables with random values in them flying about.

Christian Graus - Microsoft MVP - C++
GeneralRe: Screen capture in C++ Pin
Alex Cutovoi10-Oct-05 12:07
Alex Cutovoi10-Oct-05 12:07 
GeneralRe: Screen capture in C++ Pin
Christian Graus10-Oct-05 12:26
protectorChristian Graus10-Oct-05 12:26 
GeneralRe: Screen capture in C++ Pin
John M. Drescher10-Oct-05 8:44
John M. Drescher10-Oct-05 8:44 
GeneralRe: Screen capture in C++ Pin
Alex Cutovoi11-Oct-05 3:02
Alex Cutovoi11-Oct-05 3:02 
QuestionHow to search for some strings in a string? Pin
Jacky Tsee9-Oct-05 18:41
Jacky Tsee9-Oct-05 18:41 
AnswerRe: How to search for some strings in a string? Pin
Lyd Fab9-Oct-05 23:00
Lyd Fab9-Oct-05 23:00 
GeneralRe: How to search for some strings in a string? Pin
Jacky Tsee10-Oct-05 4:25
Jacky Tsee10-Oct-05 4:25 
GeneralRe: How to search for some strings in a string? Pin
Johann Gerell12-Oct-05 1:02
Johann Gerell12-Oct-05 1:02 
QuestionC++ UDP Tutorial Pin
JBAK_CP9-Oct-05 13:38
JBAK_CP9-Oct-05 13:38 
Questionheeeeelp Pin
linuxadict9-Oct-05 11:49
linuxadict9-Oct-05 11:49 
AnswerRe: heeeeelp Pin
Christian Graus11-Oct-05 11:09
protectorChristian Graus11-Oct-05 11:09 
QuestionUsing GDI+ to apply image effects Pin
ben090908-Oct-05 16:36
ben090908-Oct-05 16:36 
AnswerRe: Using GDI+ to apply image effects Pin
Christian Graus9-Oct-05 2:19
protectorChristian Graus9-Oct-05 2:19 
GeneralRe: Using GDI+ to apply image effects Pin
ben0909010-Oct-05 7:47
ben0909010-Oct-05 7:47 
GeneralRe: Using GDI+ to apply image effects Pin
Christian Graus10-Oct-05 7:56
protectorChristian Graus10-Oct-05 7:56 
GeneralRe: Using GDI+ to apply image effects Pin
ben0909011-Oct-05 11:04
ben0909011-Oct-05 11:04 
GeneralRe: Using GDI+ to apply image effects Pin
Christian Graus11-Oct-05 11:08
protectorChristian Graus11-Oct-05 11:08 

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.