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

C / C++ / MFC

 
AnswerRe: c++ Pin
Jochen Arndt11-Aug-16 21:42
professionalJochen Arndt11-Aug-16 21:42 
QuestionInconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 7:58
ForNow11-Aug-16 7:58 
AnswerRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 9:55
jeron111-Aug-16 9:55 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 10:30
ForNow11-Aug-16 10:30 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 10:46
jeron111-Aug-16 10:46 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 11:31
ForNow11-Aug-16 11:31 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 12:24
jeron111-Aug-16 12:24 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 15:49
ForNow11-Aug-16 15:49 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
leon de boer12-Aug-16 4:38
leon de boer12-Aug-16 4:38 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow12-Aug-16 5:01
ForNow12-Aug-16 5:01 
QuestionC fread to read 512k binary file Pin
Fossi Bluman10-Aug-16 11:57
Fossi Bluman10-Aug-16 11:57 
QuestionRe: C fread to read 512k binary file Pin
David Crow10-Aug-16 16:45
David Crow10-Aug-16 16:45 
AnswerRe: C fread to read 512k binary file Pin
k505411-Aug-16 12:46
mvek505411-Aug-16 12:46 
GeneralRe: C fread to read 512k binary file Pin
David Crow11-Aug-16 16:24
David Crow11-Aug-16 16:24 
AnswerRe: C fread to read 512k binary file Pin
Daniel Pfeffer10-Aug-16 21:15
professionalDaniel Pfeffer10-Aug-16 21:15 
GeneralRe: C fread to read 512k binary file Pin
Fossi Bluman11-Aug-16 1:58
Fossi Bluman11-Aug-16 1:58 
GeneralRe: C fread to read 512k binary file Pin
Daniel Pfeffer11-Aug-16 3:54
professionalDaniel Pfeffer11-Aug-16 3:54 
Examine the printf() statement closely. You will see the following formatting:

%02x for buf[15]
%lu for size

The %02x formatting is meant for printing an unsigned int, but you are printing an unsigned char. In order to be certain that this works on all systems, cast buf[15] to unsigned int.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

GeneralRe: C fread to read 512k binary file Pin
Fossi Bluman11-Aug-16 6:56
Fossi Bluman11-Aug-16 6:56 
AnswerRe: C fread to read 512k binary file Pin
Software_Developer20-Aug-16 0:03
Software_Developer20-Aug-16 0:03 
GeneralRe: C fread to read 512k binary file Pin
Fossi Bluman23-Aug-16 6:45
Fossi Bluman23-Aug-16 6:45 
QuestionVector as function return Pin
Donguy19769-Aug-16 15:40
Donguy19769-Aug-16 15:40 
AnswerRe: Vector as function return Pin
Richard MacCutchan9-Aug-16 20:57
mveRichard MacCutchan9-Aug-16 20:57 
QuestionAdding Text to the Frame Of a Dialog Pin
ForNow9-Aug-16 4:39
ForNow9-Aug-16 4:39 
AnswerRe: Adding Text to the Frame Of a Dialog Pin
jeron19-Aug-16 8:33
jeron19-Aug-16 8:33 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow9-Aug-16 13:07
ForNow9-Aug-16 13:07 

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.