Click here to Skip to main content
15,881,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionftp : to upload multile files at same time Pin
includeh1017-Jul-12 4:27
includeh1017-Jul-12 4:27 
QuestionRe: ftp : to upload multile files at same time Pin
David Crow17-Jul-12 9:59
David Crow17-Jul-12 9:59 
AnswerRe: ftp : to upload multile files at same time Pin
Peter_in_278017-Jul-12 18:16
professionalPeter_in_278017-Jul-12 18:16 
QuestionMoving file with progress Pin
sarfaraznawaz17-Jul-12 1:02
sarfaraznawaz17-Jul-12 1:02 
AnswerRe: Moving file with progress Pin
Malli_S17-Jul-12 1:43
Malli_S17-Jul-12 1:43 
QuestionRe: Moving file with progress Pin
Richard MacCutchan17-Jul-12 2:39
mveRichard MacCutchan17-Jul-12 2:39 
GeneralRe: Moving file with progress Pin
David Crow17-Jul-12 4:26
David Crow17-Jul-12 4:26 
GeneralRe: Moving file with progress Pin
sarfaraznawaz17-Jul-12 20:03
sarfaraznawaz17-Jul-12 20:03 
see i tried like this but it does not coming in callback function .
so that i use while loop to update the progress
<pre>DWORD CALLBACK CopyProgressRoutine(LARGE_INTEGER TotalFileSize,LARGE_INTEGER TotalBytesTransferred,LARGE_INTEGER StreamSize,
 								   LARGE_INTEGER StreamBytesTransferred,DWORD dwStreamNumber,DWORD dwCallbackReason,
 								   HANDLE hStoreFile,HANDLE hFinalFile,LPVOID lpData)
 {
 
 
 	Temp_TotalBytesTransferred.QuadPart = TotalBytesTransferred.QuadPart;
 	Temp_TotalFileSize.QuadPart=TotalFileSize.QuadPart;
 	iNewPercent1 = int(( double(TotalBytesTransferred.QuadPart) /
 		double(TotalFileSize.QuadPart) ) * 100);
	return PROGRESS_CONTINUE;

 }</pre><pre lang="cs">while(savingbytetraversed&lt;=m_li64FileSize.QuadPart)
            {

                ::SendMessage(h_wnd,WM_APP + 12, 0,0);
                savingbytetraversed+=10;
                ullBytesTraversed = savingbytetraversed;
                if (bSaveexecution  == 0)
                {
                    successForsavingfile == FALSE;
                    break;
                }
            }
            if (savingbytetraversed &gt;= m_li64FileSize.QuadPart )
            {
                successForsavingfile =TRUE;
                ::SendMessage(h_wnd,WM_APP + 12, 0,0);
                MoveFileWithProgress(FilePathForSaving,pathforsaving,
                    CopyProgressRoutine, NULL, MOVEFILE_COPY_ALLOWED);
                ::MessageBox(h_wnd,_T(&quot;File Saved successfully &quot;),_T(&quot;Information &quot;),MB_ICONINFORMATION);
                successForsavingfile = FALSE;
                closefile= FALSE;

            }</pre>

QuestionRe: Moving file with progress Pin
David Crow18-Jul-12 2:16
David Crow18-Jul-12 2:16 
QuestionAbout opengl screen shot is black Pin
wangningyu16-Jul-12 22:52
wangningyu16-Jul-12 22:52 
SuggestionRe: About opengl screen shot is black Pin
Richard MacCutchan16-Jul-12 23:29
mveRichard MacCutchan16-Jul-12 23:29 
AnswerRe: About opengl screen shot is black Pin
Software_Developer17-Jul-12 3:48
Software_Developer17-Jul-12 3:48 
QuestionBasic / standard MFC VC6.0 CListCtrl questions Pin
Vaclav_16-Jul-12 10:02
Vaclav_16-Jul-12 10:02 
AnswerRe: Basic / standard MFC VC6.0 CListCtrl questions Pin
Jochen Arndt16-Jul-12 21:09
professionalJochen Arndt16-Jul-12 21:09 
GeneralRe: Basic / standard MFC VC6.0 CListCtrl questions Pin
Vaclav_17-Jul-12 3:23
Vaclav_17-Jul-12 3:23 
GeneralRe: Basic / standard MFC VC6.0 CListCtrl questions Pin
Jochen Arndt17-Jul-12 3:33
professionalJochen Arndt17-Jul-12 3:33 
GeneralSOLVED Basic / standard MFC VC6.0 CListCtrl questions Pin
Vaclav_18-Jul-12 3:47
Vaclav_18-Jul-12 3:47 
QuestionCMFCToolbar EnableReflections : how is it supposed to work ? Pin
Maximilien16-Jul-12 9:26
Maximilien16-Jul-12 9:26 
AnswerRe: CMFCToolbar EnableReflections : how is it supposed to work ? Pin
Eugen Podsypalnikov16-Jul-12 23:10
Eugen Podsypalnikov16-Jul-12 23:10 
Questionwhy no virtual constructor? Pin
shanmugarajaa16-Jul-12 3:34
shanmugarajaa16-Jul-12 3:34 
AnswerRe: why no virtual constructor? Pin
sanjaylk16-Jul-12 3:54
sanjaylk16-Jul-12 3:54 
GeneralRe: why no virtual constructor? Pin
Stefan_Lang16-Jul-12 22:07
Stefan_Lang16-Jul-12 22:07 
AnswerRe: why no virtual constructor? PinPopular
jschell16-Jul-12 6:01
jschell16-Jul-12 6:01 
GeneralRe: why no virtual constructor? Pin
Stefan_Lang16-Jul-12 22:08
Stefan_Lang16-Jul-12 22:08 
AnswerRe: why no virtual constructor? Pin
Chris Losinger16-Jul-12 7:02
professionalChris Losinger16-Jul-12 7:02 

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.