Click here to Skip to main content
15,905,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Hello again.

The fact that you are casting the integer pointer to a char pointer doesn't matter at all. It's just pointers, not the real values.
I suggest this code (modified from your example, and not tested):

unsigned int i = 0;
int count = 0;
unsigned char ch;
ifstream fin("data.bin", ios::in | ios::binary);
while (count != 5120)
{
fin.seekg(count);
cout <
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 
QuestionProgram Files special folder location. Pin
Martin Marvinski31-Oct-05 16:37
Martin Marvinski31-Oct-05 16:37 
AnswerRe: Program Files special folder location. Pin
khan++31-Oct-05 17:53
khan++31-Oct-05 17:53 
QuestionMFC FormView Pin
ltallman31-Oct-05 16:33
ltallman31-Oct-05 16:33 
AnswerRe: MFC FormView Pin
Christian Graus31-Oct-05 16:35
protectorChristian Graus31-Oct-05 16:35 
AnswerRe: MFC FormView Pin
Arman S.31-Oct-05 21:07
Arman S.31-Oct-05 21:07 
QuestionUnicode, hexadecimal and japanese. Pin
samkook31-Oct-05 14:33
samkook31-Oct-05 14:33 
AnswerRe: Unicode, hexadecimal and japanese. Pin
__yb31-Oct-05 21:20
__yb31-Oct-05 21:20 
GeneralRe: Unicode, hexadecimal and japanese. Pin
samkook1-Nov-05 7:31
samkook1-Nov-05 7:31 
GeneralRe: Unicode, hexadecimal and japanese. Pin
__yb1-Nov-05 11:51
__yb1-Nov-05 11:51 

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.