Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can you simplify the function by #define? Pin
Abhi Lahare21-Dec-09 5:41
Abhi Lahare21-Dec-09 5:41 
GeneralRe: can you simplify the function by #define? Pin
Nelek21-Dec-09 7:04
protectorNelek21-Dec-09 7:04 
Questionfread() for file system Pin
hrishiS20-Dec-09 23:26
hrishiS20-Dec-09 23:26 
AnswerRe: fread() for file system Pin
CPallini21-Dec-09 0:25
mveCPallini21-Dec-09 0:25 
QuestionHow to save Images in none compression images Pin
Game-point20-Dec-09 23:15
Game-point20-Dec-09 23:15 
AnswerRe: How to save Images in none compression images Pin
CPallini21-Dec-09 0:58
mveCPallini21-Dec-09 0:58 
AnswerRe: How to save Images in none compression images Pin
Code-o-mat21-Dec-09 10:19
Code-o-mat21-Dec-09 10:19 
QuestionOver Writing in File System... Pin
hrishiS20-Dec-09 20:54
hrishiS20-Dec-09 20:54 
Hi To All,

I have written a code to write some data to a binary file system ...(I am writing 3 structure with different size)...one after another. like A,B,C

I dont have any delimiter or special object to know the next size(bytes) to read from the file .
Because of that I always read one by one....

Now I want to overwrite the middle structure...(B).....While over writing I am having some problem...
what I did is...
...Read the file with size of A (in order to point the file pointer to the next memory..ie starting of struct B)...then write the second structure with the sizeof(B)...
I have open the file in r+b mode....
Now when I read the file its showing some error


please help me for the same...

-----------------------------
I am a beginner

QuestionRe: Over Writing in File System... Pin
CPallini20-Dec-09 21:25
mveCPallini20-Dec-09 21:25 
AnswerRe: Over Writing in File System... Pin
hrishiS20-Dec-09 21:29
hrishiS20-Dec-09 21:29 
GeneralRe: Over Writing in File System... Pin
CPallini20-Dec-09 21:38
mveCPallini20-Dec-09 21:38 
QuestionRe: Over Writing in File System... Pin
Ahmed Charfeddine20-Dec-09 21:27
Ahmed Charfeddine20-Dec-09 21:27 
AnswerRe: Over Writing in File System... Pin
hrishiS20-Dec-09 21:30
hrishiS20-Dec-09 21:30 
GeneralRe: Over Writing in File System... Pin
Ahmed Charfeddine20-Dec-09 21:34
Ahmed Charfeddine20-Dec-09 21:34 
GeneralDo not surrender Pin
Ahmed Charfeddine20-Dec-09 21:36
Ahmed Charfeddine20-Dec-09 21:36 
GeneralRe: Do not surrender Pin
hrishiS20-Dec-09 21:45
hrishiS20-Dec-09 21:45 
AnswerRe: Over Writing in File System... Pin
Richard MacCutchan20-Dec-09 21:27
mveRichard MacCutchan20-Dec-09 21:27 
GeneralRe: Over Writing in File System... Pin
hrishiS20-Dec-09 21:31
hrishiS20-Dec-09 21:31 
AnswerRe: Over Writing in File System... Pin
Code-o-mat20-Dec-09 22:24
Code-o-mat20-Dec-09 22:24 
QuestionIcons In VC++ Pin
jannathali20-Dec-09 19:52
jannathali20-Dec-09 19:52 
AnswerRe: Icons In VC++ Pin
KingsGambit20-Dec-09 20:25
KingsGambit20-Dec-09 20:25 
AnswerRe: Icons In VC++ Pin
Code-o-mat20-Dec-09 20:48
Code-o-mat20-Dec-09 20:48 
QuestionRunning a windows service in Windows7 Pin
beko20-Dec-09 19:48
beko20-Dec-09 19:48 
QuestionSetWindowPos : Debug assertion Pin
Anu_Bala20-Dec-09 19:33
Anu_Bala20-Dec-09 19:33 
AnswerRe: SetWindowPos : Debug assertion Pin
KingsGambit20-Dec-09 20:21
KingsGambit20-Dec-09 20:21 

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.