Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Querry. Pin
chandu00429-Jun-09 0:57
chandu00429-Jun-09 0:57 
AnswerRe: Querry. Pin
«_Superman_»29-Jun-09 0:57
professional«_Superman_»29-Jun-09 0:57 
GeneralRe: Querry. Pin
Rajesh R Subramanian29-Jun-09 1:28
professionalRajesh R Subramanian29-Jun-09 1:28 
GeneralRe: Querry. [modified] Pin
chandu00429-Jun-09 1:34
chandu00429-Jun-09 1:34 
AnswerRe: Querry. Pin
Rajesh R Subramanian29-Jun-09 1:03
professionalRajesh R Subramanian29-Jun-09 1:03 
QuestionApplication freeze Pin
susanne129-Jun-09 0:27
susanne129-Jun-09 0:27 
QuestionRe: Application freeze Pin
«_Superman_»29-Jun-09 0:32
professional«_Superman_»29-Jun-09 0:32 
AnswerRe: Application freeze Pin
susanne129-Jun-09 0:36
susanne129-Jun-09 0:36 
AnswerRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 0:38
professionalRajesh R Subramanian29-Jun-09 0:38 
GeneralRe: Application freeze Pin
susanne129-Jun-09 0:52
susanne129-Jun-09 0:52 
GeneralRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 0:58
professionalRajesh R Subramanian29-Jun-09 0:58 
GeneralRe: Application freeze Pin
susanne129-Jun-09 1:45
susanne129-Jun-09 1:45 
GeneralRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 1:52
professionalRajesh R Subramanian29-Jun-09 1:52 
AnswerRe: Application freeze Pin
Michael Thärigen12-Sep-09 22:54
Michael Thärigen12-Sep-09 22:54 
Questiontimer start problem Pin
susanne129-Jun-09 0:25
susanne129-Jun-09 0:25 
AnswerRe: timer start problem Pin
«_Superman_»29-Jun-09 0:35
professional«_Superman_»29-Jun-09 0:35 
GeneralRe: timer start problem Pin
susanne129-Jun-09 0:57
susanne129-Jun-09 0:57 
AnswerRe: timer start problem Pin
Stuart Dootson29-Jun-09 0:39
professionalStuart Dootson29-Jun-09 0:39 
GeneralRe: timer start problem Pin
susanne129-Jun-09 1:15
susanne129-Jun-09 1:15 
GeneralRe: timer start problem Pin
Chandrasekharan P29-Jun-09 1:57
Chandrasekharan P29-Jun-09 1:57 
GeneralRe: timer start problem Pin
Stuart Dootson29-Jun-09 2:39
professionalStuart Dootson29-Jun-09 2:39 
QuestionCreateFile related Pin
ashish8patil29-Jun-09 0:07
ashish8patil29-Jun-09 0:07 
AnswerRe: CreateFile related Pin
Cedric Moonen29-Jun-09 0:16
Cedric Moonen29-Jun-09 0:16 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:23
ashish8patil29-Jun-09 0:23 
AnswerRe: CreateFile related Pin
«_Superman_»29-Jun-09 0:18
professional«_Superman_»29-Jun-09 0:18 
SetFilePointer is the correct way to do it.
Before that you must open the file as GENERIC_READ|GENERIC_WRITE since you want to do both.
Each record in your case will take up sizeof(Student) bytes.
So it is just a matter of multiplication to find the offset of the record to modify.
So do a SetFilePointer to that offset with move method as FILE_BEGIN.
Then do a WriteFile with the new record.

«_Superman
I love work. It gives me something to do between weekends.

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.