Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 21:44
Mustafa Ismail Mustafa11-Dec-08 21:44 
GeneralRe: Ignoring \n in a binary file during reading Pin
Stuart Dootson11-Dec-08 23:11
professionalStuart Dootson11-Dec-08 23:11 
GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa12-Dec-08 1:00
Mustafa Ismail Mustafa12-Dec-08 1:00 
GeneralRe: Ignoring \n in a binary file during reading Pin
Luc Pattyn11-Dec-08 3:07
sitebuilderLuc Pattyn11-Dec-08 3:07 
GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 3:18
Mustafa Ismail Mustafa11-Dec-08 3:18 
GeneralRe: Ignoring \n in a binary file during reading Pin
Luc Pattyn11-Dec-08 3:40
sitebuilderLuc Pattyn11-Dec-08 3:40 
GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 3:48
Mustafa Ismail Mustafa11-Dec-08 3:48 
GeneralRe: Ignoring \n in a binary file during reading Pin
Luc Pattyn11-Dec-08 4:32
sitebuilderLuc Pattyn11-Dec-08 4:32 
Mustafa Ismail Mustafa wrote:
cout << hex << buffer[i] << endl


as buffer is a char*, buffer[i] is a char and gets output as such.
If you want to see its numeric value, you must do something to it, as a minimum cast it to an int.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 4:45
Mustafa Ismail Mustafa11-Dec-08 4:45 
AnswerRe: Ignoring \n in a binary file during reading Pin
VentsyV11-Dec-08 6:55
VentsyV11-Dec-08 6:55 
GeneralRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 10:36
Mustafa Ismail Mustafa11-Dec-08 10:36 
QuestionRe: Ignoring \n in a binary file during reading Pin
David Crow11-Dec-08 8:13
David Crow11-Dec-08 8:13 
AnswerRe: Ignoring \n in a binary file during reading Pin
Mustafa Ismail Mustafa11-Dec-08 10:39
Mustafa Ismail Mustafa11-Dec-08 10:39 
GeneralRe: Ignoring \n in a binary file during reading Pin
bulg11-Dec-08 12:13
bulg11-Dec-08 12:13 
Questionalgorithms of combination Pin
mayamay11-Dec-08 2:31
mayamay11-Dec-08 2:31 
AnswerRe: algorithms of combination Pin
Mustafa Ismail Mustafa11-Dec-08 2:34
Mustafa Ismail Mustafa11-Dec-08 2:34 
GeneralRe: algorithms of combination Pin
mayamay11-Dec-08 2:43
mayamay11-Dec-08 2:43 
GeneralRe: algorithms of combination Pin
Mustafa Ismail Mustafa11-Dec-08 2:55
Mustafa Ismail Mustafa11-Dec-08 2:55 
GeneralRe: algorithms of combination Pin
mayamay11-Dec-08 3:00
mayamay11-Dec-08 3:00 
GeneralRe: algorithms of combination Pin
Mustafa Ismail Mustafa11-Dec-08 3:05
Mustafa Ismail Mustafa11-Dec-08 3:05 
AnswerRe: algorithms of combination Pin
BonshatS11-Dec-08 3:37
BonshatS11-Dec-08 3:37 
QuestionMD5 - different results Pin
gabbana11-Dec-08 2:15
gabbana11-Dec-08 2:15 
AnswerRe: MD5 - different results Pin
Stuart Dootson11-Dec-08 2:32
professionalStuart Dootson11-Dec-08 2:32 
GeneralRe: MD5 - different results Pin
gabbana11-Dec-08 2:42
gabbana11-Dec-08 2:42 
QuestionHow to allow the user to enter a value between 0x00 and 0xFF in an edit box ? Pin
kapardhi11-Dec-08 1:47
kapardhi11-Dec-08 1:47 

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.