Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert textfile into variables and arrays? Pin
kakan1-Nov-05 19:22
professionalkakan1-Nov-05 19:22 
QuestionStuck again... Pin
jedenddhsakjldf7-Nov-05 13:29
jedenddhsakjldf7-Nov-05 13:29 
AnswerRe: Stuck again... Pin
kakan7-Nov-05 21:02
professionalkakan7-Nov-05 21:02 
GeneralRe: Stuck again... Pin
jedenddhsakjldf8-Nov-05 9:21
jedenddhsakjldf8-Nov-05 9:21 
GeneralRe: Stuck again... Pin
kakan8-Nov-05 20:47
professionalkakan8-Nov-05 20:47 
GeneralRe: Stuck again... Pin
kakan8-Nov-05 21:38
professionalkakan8-Nov-05 21:38 
Question[Message Deleted] Pin
BeautyLord31-Oct-05 23:38
BeautyLord31-Oct-05 23:38 
AnswerRe: how about your hands in here? Pin
toxcct1-Nov-05 0:07
toxcct1-Nov-05 0:07 
AnswerRe: how about your hands in here? Pin
#realJSOP1-Nov-05 1:56
professional#realJSOP1-Nov-05 1:56 
QuestionImages from an internet explorer images Pin
ThG6431-Oct-05 23:28
ThG6431-Oct-05 23:28 
AnswerRe: Images from an internet explorer images Pin
Maximilien1-Nov-05 2:23
Maximilien1-Nov-05 2:23 
GeneralRe: Images from an internet explorer images Pin
David Crow1-Nov-05 2:31
David Crow1-Nov-05 2:31 
GeneralRe: Images from an internet explorer images Pin
ThG642-Nov-05 7:58
ThG642-Nov-05 7:58 
Questionhow to get IWebbrowser2 by using HWND? Pin
yj31-Oct-05 22:41
yj31-Oct-05 22:41 
AnswerRe: how to get IWebbrowser2 by using HWND? Pin
yj2-Nov-05 21:38
yj2-Nov-05 21:38 
QuestionBinary files again... Pin
Aqueel31-Oct-05 20:35
Aqueel31-Oct-05 20:35 
AnswerRe: Binary files again... Pin
kakan31-Oct-05 21:22
professionalkakan31-Oct-05 21:22 
AnswerRe: Binary files again... Pin
Aqueel31-Oct-05 23:11
Aqueel31-Oct-05 23:11 
GeneralRe: Binary files again... Pin
kakan1-Nov-05 0:00
professionalkakan1-Nov-05 0:00 
AnswerRe: Binary files again... Pin
kakan1-Nov-05 0:23
professionalkakan1-Nov-05 0:23 
QuestionHow to join a computer to the domain?? Pin
Rick Pan31-Oct-05 19:46
Rick Pan31-Oct-05 19:46 
QuestionTransparent image Pin
samira forooghi31-Oct-05 19:15
samira forooghi31-Oct-05 19:15 
AnswerRe: Transparent image Pin
Mircea Puiu31-Oct-05 20:34
Mircea Puiu31-Oct-05 20:34 
QuestionBinary files Pin
Aqueel31-Oct-05 18:22
Aqueel31-Oct-05 18:22 
AnswerRe: Binary files Pin
kakan31-Oct-05 19:47
professionalkakan31-Oct-05 19:47 
Hello.
You are reading sizeof(i) no of charaters from the file. Is that what you want?
i is an integer, so sizeof(i) will evaluate to 4 (bytes).

My guess is that you really want to read one character at the time from the file and then interpret it as an integer, right?
The read it as an unsigned char, with sizeof(unsigned char)
Then, cast it to ant int.




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.