Click here to Skip to main content
15,906,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcopy jpg to clipboard Pin
Stirfie14-Jun-05 2:08
Stirfie14-Jun-05 2:08 
GeneralRe: copy jpg to clipboard Pin
David Crow14-Jun-05 3:12
David Crow14-Jun-05 3:12 
GeneralRe: copy jpg to clipboard Pin
Stirfie14-Jun-05 23:24
Stirfie14-Jun-05 23:24 
GeneralRe: copy jpg to clipboard Pin
David Crow15-Jun-05 3:09
David Crow15-Jun-05 3:09 
Generalsaving a bitmap Pin
Arrun14-Jun-05 1:30
Arrun14-Jun-05 1:30 
GeneralRe: saving a bitmap Pin
Christian Graus14-Jun-05 2:01
protectorChristian Graus14-Jun-05 2:01 
Generalconverting byte to bit Pin
Arrun14-Jun-05 1:24
Arrun14-Jun-05 1:24 
GeneralRe: converting byte to bit Pin
Christian Graus14-Jun-05 1:29
protectorChristian Graus14-Jun-05 1:29 
Use && and || to combine and mask values, instead of + or =. For example, FF && F0 == F0. If you take an 8 bit number and set it to equal itself && 15, you get only the low four bits, && 240 gives you the high four. In that way, you can set one pixel to zero. Then if you want to set the pixel in the low four bits, you just put oldVal || newval, that copies it in. to copy into the high four, do this: oldval || ( newVal << 4). this shifts the values up four bits first. To just set two pixels do this (pixelLeft << 4) + pixelRight. You can use plus here, because you're replacing both values.

Christian Graus - Microsoft MVP - C++
GeneralRe: converting byte to bit Pin
PJ Arends14-Jun-05 7:08
professionalPJ Arends14-Jun-05 7:08 
GeneralRe: converting byte to bit Pin
Christian Graus14-Jun-05 13:49
protectorChristian Graus14-Jun-05 13:49 
Questionhow to debug a helper object? Pin
ThinkingPrometheus14-Jun-05 0:54
ThinkingPrometheus14-Jun-05 0:54 
GeneralRelease in _RecordsetPtr Pin
Anonymous14-Jun-05 0:36
Anonymous14-Jun-05 0:36 
GeneralShell Extension On 64 bit Windows XP Pin
Bond0414-Jun-05 0:10
Bond0414-Jun-05 0:10 
Generalneed help!! please help me.. Pin
c_ngo13-Jun-05 20:39
c_ngo13-Jun-05 20:39 
GeneralRe: need help!! please help me.. Pin
Bob Stanneveld13-Jun-05 23:51
Bob Stanneveld13-Jun-05 23:51 
GeneralRe: need help!! please help me.. Pin
Nilesh K.14-Jun-05 0:25
Nilesh K.14-Jun-05 0:25 
GeneralRe: need help!! please help me.. Pin
Christian Graus14-Jun-05 1:21
protectorChristian Graus14-Jun-05 1:21 
GeneralRe: need help!! please help me.. Pin
Bob Stanneveld14-Jun-05 3:32
Bob Stanneveld14-Jun-05 3:32 
GeneralRe: need help!! please help me.. Pin
c_ngo15-Jun-05 15:30
c_ngo15-Jun-05 15:30 
GeneralRe: need help!! please help me.. Pin
c_ngo15-Jun-05 15:35
c_ngo15-Jun-05 15:35 
QuestionHow to remove close button from window? Pin
amrutajoshi13-Jun-05 20:36
amrutajoshi13-Jun-05 20:36 
AnswerRe: How to remove close button from window? Pin
Bob Stanneveld13-Jun-05 23:58
Bob Stanneveld13-Jun-05 23:58 
AnswerRe: How to remove close button from window? Pin
Stlan14-Jun-05 0:01
Stlan14-Jun-05 0:01 
GeneralFileSystemWatcher - File used by another process Pin
g3e13-Jun-05 23:36
g3e13-Jun-05 23:36 
Questionhow to change debug options? Pin
ThinkingPrometheus13-Jun-05 23:35
ThinkingPrometheus13-Jun-05 23:35 

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.