Click here to Skip to main content
15,867,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
hello all ,

I am writing student info on file by following way..

Struct Student
{
int Marks;
int RollNo;
};
Student Sobj;
int main()
{
//then i create file using ,CreateFile( ....);
//I store data for 10 student
for(int i=0;i<10;i++)
{
Sobj.Marks=10*i;
Sobj.RollNo=i;
WriteFile ( HandleFile , &sobj , sizeof ( struct Student ) ,...,...);

}
CloseHandle( ..) ;
}
--------------------------

This code work proper .
Then I read that data using ReadFile(Handle,&sobj,....) it also work
-----------------------------------
Now My problem is I am reading that file on some condition i want to change data of students eg. for roll no 3 marks 80;
how should i do this .
means i am reading and on some condition i have to Use WrteFile()
i try using SetFilePointer But i was not able to do that ,,how to go back in file.

Thanks All
Ashish P.
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 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:28
ashish8patil29-Jun-09 0:28 
GeneralRe: CreateFile related Pin
«_Superman_»29-Jun-09 0:31
professional«_Superman_»29-Jun-09 0:31 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:36
ashish8patil29-Jun-09 0:36 
AnswerRe: CreateFile related Pin
Luc Pattyn29-Jun-09 0:20
sitebuilderLuc Pattyn29-Jun-09 0:20 
AnswerRe: CreateFile related Pin
Stuart Dootson29-Jun-09 0:32
professionalStuart Dootson29-Jun-09 0:32 
QuestionCDockablePane Autohide issue Pin
Harsh Shankar28-Jun-09 23:39
Harsh Shankar28-Jun-09 23:39 
Questionlist and ip control in mfc Pin
rahuljin28-Jun-09 23:37
rahuljin28-Jun-09 23:37 
AnswerRe: list and ip control in mfc Pin
«_Superman_»28-Jun-09 23:48
professional«_Superman_»28-Jun-09 23:48 
GeneralRe: list and ip control in mfc Pin
rahuljin28-Jun-09 23:54
rahuljin28-Jun-09 23:54 
GeneralRe: list and ip control in mfc Pin
«_Superman_»28-Jun-09 23:57
professional«_Superman_»28-Jun-09 23:57 
QuestionSHFileOperation and Vista64 Pin
khb28-Jun-09 21:51
khb28-Jun-09 21:51 
AnswerRe: SHFileOperation and Vista64 Pin
«_Superman_»28-Jun-09 22:25
professional«_Superman_»28-Jun-09 22:25 
GeneralRe: SHFileOperation and Vista64 Pin
khb28-Jun-09 22:38
khb28-Jun-09 22:38 
GeneralRe: SHFileOperation and Vista64 Pin
«_Superman_»28-Jun-09 22:39
professional«_Superman_»28-Jun-09 22:39 

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.