Click here to Skip to main content
15,916,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can Someone Explain Error Message Pin
toxcct19-Oct-05 0:26
toxcct19-Oct-05 0:26 
GeneralRe: Can Someone Explain Error Message Pin
sweep12319-Oct-05 0:45
sweep12319-Oct-05 0:45 
GeneralRe: Can Someone Explain Error Message Pin
prasad_som19-Oct-05 2:11
prasad_som19-Oct-05 2:11 
GeneralRe: Can Someone Explain Error Message Pin
toxcct19-Oct-05 2:28
toxcct19-Oct-05 2:28 
GeneralRe: Can Someone Explain Error Message Pin
prasad_som19-Oct-05 2:42
prasad_som19-Oct-05 2:42 
GeneralRe: Can Someone Explain Error Message Pin
Rage19-Oct-05 3:16
professionalRage19-Oct-05 3:16 
GeneralRe: Can Someone Explain Error Message Pin
sweep12319-Oct-05 3:33
sweep12319-Oct-05 3:33 
GeneralRe: Can Someone Explain Error Message Pin
toxcct19-Oct-05 3:52
toxcct19-Oct-05 3:52 
ok, i've got it... just have a look at the MSDN[^] :

Practically, this occurs when the programmer is trying to express the minimum integer value, which is -2147483648. This value cannot be written as -2147483648 because the expression is processed in two stages:

1. The number 2147483648 is evaluated. Because it is greater than the maximum integer value of 2147483647, the type of 2147483648 is not int, but unsigned int.
2. Unary minus is applied to the value, with an unsigned result, which also happens to be 2147483648.

ah, that was so simple D'Oh! | :doh:
just use INT_MIN instead of hard coding the value and don't forget to #include<limits.h>...



TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: Can Someone Explain Error Message Pin
sweep12319-Oct-05 4:04
sweep12319-Oct-05 4:04 
GeneralRe: Can Someone Explain Error Message Pin
Roger Stoltz19-Oct-05 3:47
Roger Stoltz19-Oct-05 3:47 
GeneralRe: Can Someone Explain Error Message Pin
John R. Shaw19-Oct-05 10:23
John R. Shaw19-Oct-05 10:23 
AnswerRe: Can Someone Explain Error Message Pin
Tim Smith19-Oct-05 3:44
Tim Smith19-Oct-05 3:44 
Question. ???.???.??? Pin
Eytukan19-Oct-05 0:07
Eytukan19-Oct-05 0:07 
AnswerRe: . ???.???.??? Pin
toxcct19-Oct-05 0:20
toxcct19-Oct-05 0:20 
GeneralRe: . ???.???.??? Pin
Eytukan19-Oct-05 0:43
Eytukan19-Oct-05 0:43 
GeneralRe: . ???.???.??? Pin
Cedric Moonen19-Oct-05 1:01
Cedric Moonen19-Oct-05 1:01 
GeneralRe: . ???.???.??? Pin
Eytukan19-Oct-05 1:20
Eytukan19-Oct-05 1:20 
GeneralOT Pin
Eytukan19-Oct-05 1:30
Eytukan19-Oct-05 1:30 
GeneralRe: OT Pin
toxcct19-Oct-05 2:25
toxcct19-Oct-05 2:25 
GeneralRe: OT Pin
Eytukan19-Oct-05 2:53
Eytukan19-Oct-05 2:53 
GeneralRe: OT Pin
toxcct19-Oct-05 2:58
toxcct19-Oct-05 2:58 
GeneralRe: OT Pin
vikas amin19-Oct-05 3:10
vikas amin19-Oct-05 3:10 
GeneralRe: OT Pin
toxcct19-Oct-05 3:39
toxcct19-Oct-05 3:39 
GeneralRe: OT Pin
ThatsAlok19-Oct-05 5:21
ThatsAlok19-Oct-05 5:21 
GeneralRe: OT Pin
Rage19-Oct-05 3:20
professionalRage19-Oct-05 3:20 

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.