Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Format retuening a negative value Pin
CPallini4-Dec-08 22:06
mveCPallini4-Dec-08 22:06 
QuestionProblem using Farpoint in vc++ Pin
SnaKeBeD4-Dec-08 19:38
SnaKeBeD4-Dec-08 19:38 
QuestionListBox data add Pin
hellogany4-Dec-08 19:31
hellogany4-Dec-08 19:31 
AnswerRe: ListBox data add Pin
Aabid4-Dec-08 20:29
Aabid4-Dec-08 20:29 
AnswerRe: ListBox data add Pin
YoungJin Shin4-Dec-08 20:29
YoungJin Shin4-Dec-08 20:29 
QuestionC++ Editors and Error Handling Pin
afridy4-Dec-08 19:26
afridy4-Dec-08 19:26 
AnswerRe: C++ Editors and Error Handling Pin
Rajesh R Subramanian4-Dec-08 19:45
professionalRajesh R Subramanian4-Dec-08 19:45 
AnswerRe: C++ Editors and Error Handling Pin
enhzflep4-Dec-08 19:52
enhzflep4-Dec-08 19:52 
Easy!

An unsigned short is 16 bits, or 4 hexidecimal digits. Your number is 17 bits, so the most significant bit is simply discarded.

Open up calc, and ensure it is in scientific mode
Enter 66000
Select the Hex radio-button
Now, see that the number is 5 hexidecimal digits (101D0)
Chop off the left-most digit, by entering 01D0
Convert this back to decimal, and lo and behold - 464!

10000000111010000 - 0x101D0 - 66000
0000000111010000 - 0x1D0 - 464

afridy wrote:
it should have been tell that "Overfllower" right?

Nope, you have to know that it wont overflow.
GeneralRe: C++ Editors and Error Handling Pin
afridy4-Dec-08 22:21
afridy4-Dec-08 22:21 
AnswerRe: C++ Editors and Error Handling Pin
Iain Clarke, Warrior Programmer4-Dec-08 22:22
Iain Clarke, Warrior Programmer4-Dec-08 22:22 
GeneralRe: C++ Editors and Error Handling Pin
afridy4-Dec-08 22:58
afridy4-Dec-08 22:58 
QuestionIcons not loading in Ribbon UI Pin
VC++Maniac4-Dec-08 19:20
VC++Maniac4-Dec-08 19:20 
AnswerRe: Icons not loading in Ribbon UI Pin
Code-o-mat4-Dec-08 22:52
Code-o-mat4-Dec-08 22:52 
GeneralRe: Icons not loading in Ribbon UI Pin
VC++Maniac5-Dec-08 1:54
VC++Maniac5-Dec-08 1:54 
GeneralRe: Icons not loading in Ribbon UI Pin
Code-o-mat5-Dec-08 2:03
Code-o-mat5-Dec-08 2:03 
GeneralRe: Icons not loading in Ribbon UI Pin
VC++Maniac5-Dec-08 2:22
VC++Maniac5-Dec-08 2:22 
GeneralRe: Icons not loading in Ribbon UI Pin
Code-o-mat5-Dec-08 2:24
Code-o-mat5-Dec-08 2:24 
GeneralRe: Icons not loading in Ribbon UI - 32 bit bitmaps Pin
VC++Maniac5-Dec-08 2:30
VC++Maniac5-Dec-08 2:30 
GeneralRe: Icons not loading in Ribbon UI - 32 bit bitmaps Pin
Code-o-mat5-Dec-08 2:32
Code-o-mat5-Dec-08 2:32 
GeneralRe: Icons not loading in Ribbon UI - 32 bit bitmaps Pin
VC++Maniac5-Dec-08 2:42
VC++Maniac5-Dec-08 2:42 
GeneralRe: Icons not loading in Ribbon UI - 32 bit bitmaps Pin
Code-o-mat5-Dec-08 2:44
Code-o-mat5-Dec-08 2:44 
QuestionTab Control Color Pin
Davitor4-Dec-08 19:16
Davitor4-Dec-08 19:16 
AnswerRe: Tab Control Color Pin
YoungJin Shin4-Dec-08 20:16
YoungJin Shin4-Dec-08 20:16 
GeneralRe: Tab Control Color Pin
Davitor4-Dec-08 20:34
Davitor4-Dec-08 20:34 
GeneralRe: Tab Control Color Pin
Iain Clarke, Warrior Programmer4-Dec-08 22:32
Iain Clarke, Warrior Programmer4-Dec-08 22:32 

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.