Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What does this syntax mean? Pin
Chris Losinger28-Feb-06 12:05
professionalChris Losinger28-Feb-06 12:05 
AnswerRe: What does this syntax mean? Pin
PJ Arends28-Feb-06 12:07
professionalPJ Arends28-Feb-06 12:07 
AnswerRe: What does this syntax mean? Pin
Ryan Binns28-Feb-06 18:18
Ryan Binns28-Feb-06 18:18 
QuestionAny java/C#-like STL alternatives for unmanaged c++? Pin
FocusedWolf28-Feb-06 11:03
FocusedWolf28-Feb-06 11:03 
AnswerRe: Any java/C#-like STL alternatives for unmanaged c++? Pin
Chris Losinger28-Feb-06 12:06
professionalChris Losinger28-Feb-06 12:06 
AnswerRe: Any java/C#-like STL alternatives for unmanaged c++? Pin
Stephen Hewitt28-Feb-06 12:36
Stephen Hewitt28-Feb-06 12:36 
QuestionReading a 16bit data file??? Pin
pavanbabut28-Feb-06 10:18
pavanbabut28-Feb-06 10:18 
AnswerRe: Reading a 16bit data file??? Pin
David Crow28-Feb-06 10:27
David Crow28-Feb-06 10:27 
So are you wanting to read the file two bytes at a time? If so, just use a short. To see if you are on the right track, try:

FILE *pFile = fopen("", "rb");
short num1, num2, num3;
fread(&num1, sizeof(short), 1, pFile);
fread(&num2, sizeof(short), 1, pFile);
fread(&num3, sizeof(short), 1, pFile);
fclose(pFile);
Now if num1, num2, and num3 are correct, you're on your way.


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


AnswerRe: Reading a 16bit data file??? Pin
PJ Arends28-Feb-06 11:08
professionalPJ Arends28-Feb-06 11:08 
GeneralRe: Reading a 16bit data file??? Pin
pavanbabut28-Feb-06 11:21
pavanbabut28-Feb-06 11:21 
GeneralRe: Reading a 16bit data file??? Pin
PJ Arends28-Feb-06 11:47
professionalPJ Arends28-Feb-06 11:47 
QuestionC++ app with no MS CRT usage Pin
Jim Crafton28-Feb-06 10:00
Jim Crafton28-Feb-06 10:00 
AnswerRe: C++ app with no MS CRT usage Pin
PJ Arends28-Feb-06 11:12
professionalPJ Arends28-Feb-06 11:12 
GeneralRe: C++ app with no MS CRT usage Pin
James Brown28-Feb-06 13:00
James Brown28-Feb-06 13:00 
GeneralRe: C++ app with no MS CRT usage Pin
derek728-Feb-06 15:17
derek728-Feb-06 15:17 
Questiondebugging an exe on windows xp Pin
ns28-Feb-06 8:20
ns28-Feb-06 8:20 
QuestionSDI's View DC Pin
masnu28-Feb-06 6:54
masnu28-Feb-06 6:54 
AnswerRe: SDI's View DC Pin
PJ Arends28-Feb-06 7:40
professionalPJ Arends28-Feb-06 7:40 
GeneralRe: SDI's View DC Pin
masnu28-Feb-06 7:59
masnu28-Feb-06 7:59 
GeneralRe: SDI's View DC Pin
David Crow28-Feb-06 8:12
David Crow28-Feb-06 8:12 
QuestionRe: SDI's View DC Pin
masnu28-Feb-06 8:52
masnu28-Feb-06 8:52 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 9:05
David Crow28-Feb-06 9:05 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 9:37
masnu28-Feb-06 9:37 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 10:01
David Crow28-Feb-06 10:01 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 10:34
masnu28-Feb-06 10:34 

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.