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

C / C++ / MFC

 
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 
Hello
I am working with binary files in c++. What i am doing is that i am reading at every 5th position in a binary file. if there is 0 then break the loop.
I wrote the following code
what is error in it. I wrote 1 at the start of the file. But it is not showing that 1
Code is

int i = 0;
int count = 0;
ifstream fin("data.bin", ios::in | ios::binary);
while (count != 5120)
{
fin.seekg(count);
cout <<i<<' ';
="" fin.read((reinterpret_cast="" <="" char="" *="">&i, sizeof(i));

if (i == 0)
break;
count+=5;
}


Please reply...
Thanks>
Aqueel A. Mirza

We Believe in Excellence

-- modified at 1:26 Tuesday 1st November, 2005
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 
GeneralRe: Unicode, hexadecimal and japanese. Pin
samkook1-Nov-05 15:40
samkook1-Nov-05 15:40 
QuestionDebugged some strange Error and Now ??? Pin
tbrake31-Oct-05 10:04
tbrake31-Oct-05 10:04 
QuestionUPS Meant 'ActivateTopParent' Pin
tbrake31-Oct-05 10:07
tbrake31-Oct-05 10:07 
AnswerRe: Debugged some strange Error and Now ??? Pin
Joe Woodbury31-Oct-05 10:49
professionalJoe Woodbury31-Oct-05 10:49 
QuestionRe: Debugged some strange Error and Now ??? Pin
tbrake31-Oct-05 11:09
tbrake31-Oct-05 11:09 
Questionfiles Pin
Manu_8131-Oct-05 8:12
Manu_8131-Oct-05 8:12 
AnswerRe: files Pin
Mircea Puiu31-Oct-05 8:33
Mircea Puiu31-Oct-05 8:33 

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.