Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CImage in Visual C++ 6 Pin
iayd6-Jun-07 5:12
iayd6-Jun-07 5:12 
GeneralRe: CImage in Visual C++ 6 Pin
Hamid_RT6-Jun-07 7:52
Hamid_RT6-Jun-07 7:52 
AnswerRe: CImage in Visual C++ 6 Pin
Mark Salsbery6-Jun-07 5:18
Mark Salsbery6-Jun-07 5:18 
QuestionRe: CImage in Visual C++ 6 Pin
iayd6-Jun-07 22:40
iayd6-Jun-07 22:40 
QuestionBITWISE opearation Pin
Shah Satish6-Jun-07 2:43
Shah Satish6-Jun-07 2:43 
AnswerRe: BITWISE opearation Pin
JudyL_MD6-Jun-07 2:52
JudyL_MD6-Jun-07 2:52 
AnswerRe: BITWISE opearation Pin
David Crow6-Jun-07 2:53
David Crow6-Jun-07 2:53 
AnswerRe: BITWISE opearation Pin
CPallini6-Jun-07 2:53
mveCPallini6-Jun-07 2:53 
Actually The output (4294967291 = 0xFFFFFFFB) is correct (your assumptions are wrong) because the unsigned int type is 4-bytes wide:

HEX: ~0x00000004 =
      0xFFFFFFFB

BINARY: ~0000 0000 0000 0000 0000 0000 0000 0100 =
         1111 1111 1111 1111 1111 1111 1111 1011


if you want to obtain 251 then use the unsigned char type:
unsigned char Value;
Value = 4;
Value = ~ Value;


Smile | :)


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

AnswerRe: BITWISE opearation Pin
apoorva_raje6-Jun-07 2:54
apoorva_raje6-Jun-07 2:54 
AnswerRe: BITWISE opearation Pin
Cedric Moonen6-Jun-07 2:54
Cedric Moonen6-Jun-07 2:54 
AnswerRe: BITWISE opearation Pin
Rajkumar R6-Jun-07 2:57
Rajkumar R6-Jun-07 2:57 
QuestionHow to check that is number or not Pin
KARFER6-Jun-07 2:15
KARFER6-Jun-07 2:15 
AnswerRe: How to check that is number or not Pin
jhwurmbach6-Jun-07 2:47
jhwurmbach6-Jun-07 2:47 
AnswerRe: How to check that is number or not Pin
David Crow6-Jun-07 2:55
David Crow6-Jun-07 2:55 
QuestionEasy One Pin
VonHagNDaz6-Jun-07 2:10
VonHagNDaz6-Jun-07 2:10 
AnswerRe: Easy One Pin
Rajkumar R6-Jun-07 2:26
Rajkumar R6-Jun-07 2:26 
GeneralRe: Easy One Pin
VonHagNDaz7-Jun-07 2:03
VonHagNDaz7-Jun-07 2:03 
QuestionIntellisense feature Pin
Demian Panello6-Jun-07 2:05
Demian Panello6-Jun-07 2:05 
AnswerRe: Intellisense feature Pin
bigphish6-Jun-07 18:12
bigphish6-Jun-07 18:12 
GeneralRe: Intellisense feature Pin
Demian Panello7-Jun-07 1:14
Demian Panello7-Jun-07 1:14 
QuestionRelease mode Crashes while Debug works fine! Pin
Immunity186-Jun-07 1:47
Immunity186-Jun-07 1:47 
AnswerRe: Release mode Crashes while Debug works fine! Pin
CPallini6-Jun-07 2:04
mveCPallini6-Jun-07 2:04 
GeneralRe: Release mode Crashes while Debug works fine! Pin
Immunity186-Jun-07 2:09
Immunity186-Jun-07 2:09 
GeneralRe: Release mode Crashes while Debug works fine! Pin
Immunity186-Jun-07 2:11
Immunity186-Jun-07 2:11 
Questionwhat DefWindowProc does to WM_PAINT message? Pin
LiYS6-Jun-07 0:12
LiYS6-Jun-07 0: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.