Click here to Skip to main content
15,890,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:28
ashish8patil29-Jun-09 0:28 
i also try to do same but it was not write there plz see code

ServerHandle = CreateFile ( L"server.dat" ,
GENERIC_READ | GENERIC_WRITE ,
FILE_SHARE_WRITE ,
NULL ,
OPEN_EXISTING ,
0 ,
NULL ) ;

if ( ServerHandle == INVALID_HANDLE_VALUE )
{
return ( 1 ) ;
}

ReadFile ( ServerHandle , & finfo , sizeof ( struct ServerFileInfo ) , &BytesRead , NULL ) ;
FilePointer.QuadPart =-sizeof(UpdateInfoOnServer);


for (i=0;i<finfo.NoUpdates ;i++)
{
ReadFile ( ServerHandle , & UpdateInfo , sizeof ( struct UpdateInfoOnServer ) , &BytesRead , NULL ) ;

if((UpdateInfo.IsApproved==1)&&(UpdateInfo.IsDownloaded==0) )
{
for(j=0;j<UpdateInfo.NumberOfPatches ;j++)
{
PatchFileID=UpdateInfo.PatchFileID[j] ;
iTmp=DownloadByPatchFileID();
if(iTmp==1)
{
return 1;
}

}
UpdateInfo.IsDownloaded=1;
SetFilePointerEx ( ServerHandle , FilePointer, NULL , FILE_CURRENT ) ;
WriteFile ( ServerHandle , & UpdateInfo , sizeof ( struct UpdateInfoOnServer ) , &BytesWritten , NULL ) ;

}
}

/////////////////////////////////////////////


where i make mistake..plz tell

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.