Click here to Skip to main content
15,883,922 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
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 
GeneralRe: SHFileOperation and Vista64 Pin
khb28-Jun-09 22:48
khb28-Jun-09 22:48 
GeneralRe: SHFileOperation and Vista64 Pin
«_Superman_»28-Jun-09 22:51
professional«_Superman_»28-Jun-09 22:51 
GeneralRe: SHFileOperation and Vista64 Pin
khb28-Jun-09 23:06
khb28-Jun-09 23:06 
GeneralRe: SHFileOperation and Vista64 Pin
Randor 29-Jun-09 5:03
professional Randor 29-Jun-09 5:03 

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.