Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading Buffer of unicode and ansi character Pin
BCN-1637-Jul-12 16:32
BCN-1637-Jul-12 16:32 
GeneralRe: Reading Buffer of unicode and ansi character Pin
Jochen Arndt7-Jul-12 22:28
professionalJochen Arndt7-Jul-12 22:28 
GeneralRe: Reading Buffer of unicode and ansi character Pin
BCN-1638-Jul-12 2:36
BCN-1638-Jul-12 2:36 
QuestionProgramming Problem Pin
Ahmed Charfeddine5-Jul-12 22:54
Ahmed Charfeddine5-Jul-12 22:54 
GeneralRe: Programming Problem Pin
«_Superman_»6-Jul-12 17:55
professional«_Superman_»6-Jul-12 17:55 
GeneralRe: Programming Problem Pin
Ahmed Charfeddine7-Jul-12 0:25
Ahmed Charfeddine7-Jul-12 0:25 
QuestionFormat INT_MAX Pin
_Flaviu5-Jul-12 22:53
_Flaviu5-Jul-12 22:53 
AnswerRe: Format INT_MAX Pin
Jochen Arndt5-Jul-12 23:08
professionalJochen Arndt5-Jul-12 23:08 
strtol() will stop parsing at the first character that is not a hex digit. In your string this is the first space character.

When you remove the spaces from your string, all will be parsed. However, this will produce an out of range error (errno is set to ERANGE and strtol() returns LONG_MAX). Because your string represents a 4 x 4 x 8 = 128 bit number.

To handle unsigned numbers, you may also use strtoul().
GeneralRe: Format INT_MAX Pin
_Flaviu5-Jul-12 23:29
_Flaviu5-Jul-12 23:29 
GeneralRe: Format INT_MAX Pin
David Crow6-Jul-12 2:38
David Crow6-Jul-12 2:38 
GeneralRe: Format INT_MAX Pin
_Flaviu6-Jul-12 4:09
_Flaviu6-Jul-12 4:09 
QuestionRe: Format INT_MAX Pin
David Crow6-Jul-12 4:41
David Crow6-Jul-12 4:41 
GeneralGet Client Area Excluding Scroll Bar Pin
AmbiguousName5-Jul-12 19:30
AmbiguousName5-Jul-12 19:30 
GeneralRe: Get Client Area Excluding Scroll Bar Pin
Jochen Arndt5-Jul-12 21:32
professionalJochen Arndt5-Jul-12 21:32 
QuestionOne instance of object Pin
_Flaviu5-Jul-12 7:17
_Flaviu5-Jul-12 7:17 
AnswerRe: One instance of object Pin
David Crow5-Jul-12 7:22
David Crow5-Jul-12 7:22 
AnswerRe: One instance of object Pin
fat_boy5-Jul-12 8:13
fat_boy5-Jul-12 8:13 
GeneralRe: One instance of object Pin
_Flaviu5-Jul-12 20:07
_Flaviu5-Jul-12 20:07 
GeneralRe: One instance of object Pin
fat_boy5-Jul-12 21:26
fat_boy5-Jul-12 21:26 
AnswerRe: One instance of object Pin
Stefan_Lang5-Jul-12 22:35
Stefan_Lang5-Jul-12 22:35 
GeneralRe: One instance of object Pin
_Flaviu5-Jul-12 23:08
_Flaviu5-Jul-12 23:08 
GeneralRe: One instance of object Pin
fat_boy6-Jul-12 0:14
fat_boy6-Jul-12 0:14 
GeneralRe: One instance of object Pin
_Flaviu6-Jul-12 0:39
_Flaviu6-Jul-12 0:39 
GeneralRe: One instance of object Pin
fat_boy6-Jul-12 1:31
fat_boy6-Jul-12 1:31 
GeneralRe: One instance of object Pin
Stefan_Lang6-Jul-12 5:33
Stefan_Lang6-Jul-12 5:33 

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.