Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Socket Connection help? Pin
Mark Salsbery18-Feb-07 7:34
Mark Salsbery18-Feb-07 7:34 
QuestionHow to get the playtime for a mp3? Pin
chocm16-Feb-07 16:16
chocm16-Feb-07 16:16 
QuestionRe: How to get the playtime for a mp3? Pin
David Crow17-Feb-07 16:16
David Crow17-Feb-07 16:16 
QuestionCompiler versions [modified] Pin
Waldermort16-Feb-07 15:39
Waldermort16-Feb-07 15:39 
AnswerRe: Compiler versions Pin
PJ Arends16-Feb-07 22:31
professionalPJ Arends16-Feb-07 22:31 
GeneralRe: Compiler versions Pin
Waldermort16-Feb-07 22:46
Waldermort16-Feb-07 22:46 
QuestionBITMAP handling for screen Pin
Vancouver16-Feb-07 13:12
Vancouver16-Feb-07 13:12 
AnswerRe: BITMAP handling for screen [modified] Pin
Mark Salsbery16-Feb-07 13:58
Mark Salsbery16-Feb-07 13:58 
1) The format of the pixel data is not planar so planes==1. RGB data is interleaved in that case.

2) Are you sure that produces the same result when hDC is a handle to a screen DC?
*EDIT* try this
HDC hDC = ::GetDC(0);
HBITMAP hBitmap = ::CreateCompatibleBitmap(hDC, 100, 100);
BITMAP bitmap;
::GetObject((HGDIOBJ)hBitmap, sizeof(BITMAP), &bitmap);

3) I believe you need to use a DIBsection to write directly to pixel data.

Mark

-- modified at 20:12 Friday 16th February, 2007
added sample code

Great job, team. Head back to base for debriefing and cocktails.

GeneralRe: BITMAP handling for screen Pin
Vancouver16-Feb-07 18:04
Vancouver16-Feb-07 18:04 
GeneralRe: BITMAP handling for screen Pin
Waldermort16-Feb-07 19:13
Waldermort16-Feb-07 19:13 
GeneralRe: BITMAP handling for screen Pin
Vancouver17-Feb-07 9:58
Vancouver17-Feb-07 9:58 
GeneralRe: BITMAP handling for screen Pin
Mark Salsbery18-Feb-07 7:12
Mark Salsbery18-Feb-07 7:12 
GeneralRe: BITMAP handling for screen Pin
Vancouver18-Feb-07 7:53
Vancouver18-Feb-07 7:53 
GeneralRe: BITMAP handling for screen Pin
Mark Salsbery18-Feb-07 8:36
Mark Salsbery18-Feb-07 8:36 
GeneralRe: BITMAP handling for screen Pin
Vancouver18-Feb-07 7:46
Vancouver18-Feb-07 7:46 
QuestionSFTP using C++ Pin
LCI16-Feb-07 8:50
LCI16-Feb-07 8:50 
AnswerRe: SFTP using C++ Pin
led mike16-Feb-07 12:14
led mike16-Feb-07 12:14 
QuestionOn paint calling order Pin
Kharfax16-Feb-07 8:01
Kharfax16-Feb-07 8:01 
AnswerRe: On paint calling order Pin
Newbie0016-Feb-07 8:09
Newbie0016-Feb-07 8:09 
AnswerRe: On paint calling order Pin
PJ Arends16-Feb-07 8:22
professionalPJ Arends16-Feb-07 8:22 
AnswerRe: On paint calling order Pin
Kharfax16-Feb-07 8:26
Kharfax16-Feb-07 8:26 
AnswerRe: On paint calling order Pin
Michael Dunn16-Feb-07 10:17
sitebuilderMichael Dunn16-Feb-07 10:17 
QuestionHow to disable selected drives? Pin
Super Hornet16-Feb-07 4:57
Super Hornet16-Feb-07 4:57 
QuestionRe: How to disable selected drives? Pin
David Crow16-Feb-07 5:14
David Crow16-Feb-07 5:14 
QuestionRe: How to disable selected drives? Pin
Super Hornet16-Feb-07 5:49
Super Hornet16-Feb-07 5:49 

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.