Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSingleLock Pin
Anonymous25-Dec-03 20:30
Anonymous25-Dec-03 20:30 
Questiondifference between ATL, MFC, and .NET Common Class? Pin
torrentmoon25-Dec-03 14:45
torrentmoon25-Dec-03 14:45 
AnswerRe: difference between ATL, MFC, and .NET Common Class? Pin
peterchen25-Dec-03 23:38
peterchen25-Dec-03 23:38 
GeneralRe: difference between ATL, MFC, and .NET Common Class? Pin
torrentmoon25-Dec-03 23:55
torrentmoon25-Dec-03 23:55 
GeneralRe: difference between ATL, MFC, and .NET Common Class? Pin
Jörgen Sigvardsson26-Dec-03 6:10
Jörgen Sigvardsson26-Dec-03 6:10 
GeneralMemory Leak When Invoke Web Service From VC++.net Using Autogen Proxy Class!! Pin
gpmn25-Dec-03 14:22
gpmn25-Dec-03 14:22 
GeneralRe: Memory Leak When Invoke Web Service From VC++.net Using Autogen Proxy Class!! Pin
gpmn25-Dec-03 14:27
gpmn25-Dec-03 14:27 
GeneralBest way to display a progressbar for file copying Pin
shultas25-Dec-03 13:04
shultas25-Dec-03 13:04 
Hello all.

I am wondering what the best way to display a progress bar to show the progress of file copying. Let's say I want to copy 500 files. Most of them are big, but some of them are small. I do not want the progress bar to reflect the # of files that are currently copied, but I want it to reflect the number of bytes actually copied. (Lets say 450 of those files are really small, and 50 of them are really huge, taking a long time to copy. If I did it this way, the progress bar would move very fast to about 75%, then go very slowly for the last 25%). If I did it by way of total bytes copied vs. total bytes, then it would be truely accurate.

I am wondering what the best way is to do this? It appears that the progress bar SetRange() can only take a short value (up to 32,767), so I think that I would have to do some math during the file copying routines to figure out which value to set the bar at.

Any pointers in the right direction would be very much appreciated.

Shultas
GeneralRe: Best way to display a progressbar for file copying Pin
l a u r e n25-Dec-03 13:17
l a u r e n25-Dec-03 13:17 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 13:29
professionalPJ Arends25-Dec-03 13:29 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 14:04
shultas25-Dec-03 14:04 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 14:13
shultas25-Dec-03 14:13 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 14:36
professionalPJ Arends25-Dec-03 14:36 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 15:34
shultas25-Dec-03 15:34 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 16:03
professionalPJ Arends25-Dec-03 16:03 
GeneralBest way to read a text file Pin
shultas25-Dec-03 11:44
shultas25-Dec-03 11:44 
GeneralRe: Best way to read a text file Pin
PJ Arends25-Dec-03 12:04
professionalPJ Arends25-Dec-03 12:04 
Generaluse CStdioFile class Pin
abudu25-Dec-03 20:54
abudu25-Dec-03 20:54 
GeneralProblem How to get All files from a Folder Pin
xxtra25-Dec-03 8:53
xxtra25-Dec-03 8:53 
GeneralRe: Problem How to get All files from a Folder Pin
PJ Arends25-Dec-03 9:14
professionalPJ Arends25-Dec-03 9:14 
GeneralRe: Problem How to get All files from a Folder Pin
(Steven Hicks)n+125-Dec-03 9:18
(Steven Hicks)n+125-Dec-03 9:18 
GeneralDll Functions Name & parameters Pin
Ghasrfakhri25-Dec-03 6:32
Ghasrfakhri25-Dec-03 6:32 
GeneralRe: Dll Functions Name & parameters Pin
valikac25-Dec-03 7:02
valikac25-Dec-03 7:02 
GeneralRe: Dll Functions Name & parameters Pin
User 665825-Dec-03 7:03
User 665825-Dec-03 7:03 
GeneralRe: Dll Functions Name & parameters Pin
Sebastián Benítez25-Dec-03 7:53
Sebastián Benítez25-Dec-03 7:53 

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.