Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Comparing the contents of DC's Pin
Christian Graus22-Nov-01 19:25
protectorChristian Graus22-Nov-01 19:25 
GeneralDisabled 256-color toolbar buttons Pin
Erik Hammar22-Nov-01 11:06
Erik Hammar22-Nov-01 11:06 
GeneralRe: Disabled 256-color toolbar buttons Pin
Andrew Peace22-Nov-01 14:47
Andrew Peace22-Nov-01 14:47 
GeneralRe: Disabled 256-color toolbar buttons Pin
Rashid Thadha22-Nov-01 22:38
Rashid Thadha22-Nov-01 22:38 
GeneralCopying a HBITMAP to a different HBITMAP Pin
Chambers22-Nov-01 10:14
Chambers22-Nov-01 10:14 
GeneralRe: Copying a HBITMAP to a different HBITMAP Pin
Christian Graus22-Nov-01 10:39
protectorChristian Graus22-Nov-01 10:39 
GeneralRe: Copying a HBITMAP to a different HBITMAP Pin
Chambers22-Nov-01 10:58
Chambers22-Nov-01 10:58 
GeneralRe: Copying a HBITMAP to a different HBITMAP Pin
Christian Graus22-Nov-01 11:06
protectorChristian Graus22-Nov-01 11:06 
memcpy copies the contents of the memory, so what happens is this:

1/ You create a new DIBSECTION the same size and bit depth as the first.
2/ You now have two DIBSECTIONs and two pointers to byte arrays, which are the same size. You use memcpy, which copies the contents of one byte array into the other. You're not allocating memory, you're copying the values of the pixels into the location that already holds the values of the bitmap as it was created, making them identical to the first.



Christian

After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now

GeneralRe: Copying a HBITMAP to a different HBITMAP Pin
Chambers22-Nov-01 11:15
Chambers22-Nov-01 11:15 
GeneralRe: Copying a HBITMAP to a different HBITMAP Pin
Christian Graus22-Nov-01 11:20
protectorChristian Graus22-Nov-01 11:20 
GeneralAnalog to CArchive in STL for data transfer via sockets?... Pin
22-Nov-01 7:10
suss22-Nov-01 7:10 
GeneralRe: Analog to CArchive in STL for data transfer via sockets?... Pin
Joaquín M López Muñoz22-Nov-01 8:43
Joaquín M López Muñoz22-Nov-01 8:43 
GeneralReadClass & WriteClass Pin
goupil22-Nov-01 5:43
goupil22-Nov-01 5:43 
Generalproblem in domodel with windows 95 only . Pin
22-Nov-01 4:55
suss22-Nov-01 4:55 
GeneralRe: problem in domodel with windows 95 only . Pin
Matt Newman22-Nov-01 5:13
Matt Newman22-Nov-01 5:13 
GeneralRe: problem in domodel with windows 95 only . Pin
Christian Graus22-Nov-01 10:46
protectorChristian Graus22-Nov-01 10:46 
QuestionHow to terminate a thread from another thread Pin
merav22-Nov-01 4:10
merav22-Nov-01 4:10 
AnswerRe: How to terminate a thread from another thread Pin
Joaquín M López Muñoz22-Nov-01 4:16
Joaquín M López Muñoz22-Nov-01 4:16 
GeneralRe: How to terminate a thread from another thread Pin
merav22-Nov-01 4:30
merav22-Nov-01 4:30 
GeneralRe: How to terminate a thread from another thread Pin
Carlos Antollini22-Nov-01 4:32
Carlos Antollini22-Nov-01 4:32 
GeneralRe: How to terminate a thread from another thread Pin
Joaquín M López Muñoz22-Nov-01 4:48
Joaquín M López Muñoz22-Nov-01 4:48 
Generala stupid question. Pin
The_Server22-Nov-01 3:58
The_Server22-Nov-01 3:58 
GeneralRe: a stupid question. Pin
moliate22-Nov-01 5:32
moliate22-Nov-01 5:32 
GeneralFailing Contructor Pin
Dave Cross22-Nov-01 2:30
professionalDave Cross22-Nov-01 2:30 
GeneralRe: Failing Contructor Pin
Michael P Butler22-Nov-01 2:54
Michael P Butler22-Nov-01 2:54 

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.