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

C / C++ / MFC

 
GeneralRe: how to add full path #include ? Pin
Dave Kreskowiak11-Dec-23 4:41
mveDave Kreskowiak11-Dec-23 4:41 
GeneralRe: how to add full path #include ? Pin
k505411-Dec-23 6:12
mvek505411-Dec-23 6:12 
GeneralRe: how to add full path #include ? Pin
Dave Kreskowiak11-Dec-23 9:19
mveDave Kreskowiak11-Dec-23 9:19 
GeneralRe: how to add full path #include ? Pin
jschell12-Dec-23 5:13
jschell12-Dec-23 5:13 
GeneralRe: how to add full path #include ? Pin
Dave Kreskowiak12-Dec-23 5:25
mveDave Kreskowiak12-Dec-23 5:25 
GeneralRe: how to add full path #include ? Pin
k505412-Dec-23 5:31
mvek505412-Dec-23 5:31 
GeneralRe: how to add full path #include ? Pin
jschell12-Dec-23 11:10
jschell12-Dec-23 11:10 
GeneralRe: how to add full path #include ? Pin
Dave Kreskowiak12-Dec-23 11:19
mveDave Kreskowiak12-Dec-23 11:19 
GeneralRe: how to add full path #include ? Pin
k505412-Dec-23 5:30
mvek505412-Dec-23 5:30 
GeneralRe: how to add full path #include ? Pin
jschell12-Dec-23 11:06
jschell12-Dec-23 11:06 
AnswerRe: how to add full path #include ? Pin
Mircea Neacsu10-Dec-23 8:11
Mircea Neacsu10-Dec-23 8:11 
AnswerRe: how to add full path #include ? Pin
Richard MacCutchan10-Dec-23 21:48
mveRichard MacCutchan10-Dec-23 21:48 
Question[edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Calin Negru9-Dec-23 23:10
Calin Negru9-Dec-23 23:10 
AnswerRe: [edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Mircea Neacsu10-Dec-23 2:03
Mircea Neacsu10-Dec-23 2:03 
AnswerRe: [edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Richard MacCutchan10-Dec-23 2:20
mveRichard MacCutchan10-Dec-23 2:20 
GeneralRe: [edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Calin Negru10-Dec-23 4:48
Calin Negru10-Dec-23 4:48 
Questiondownload a web page Pin
mike74116-Dec-23 4:30
mike74116-Dec-23 4:30 
AnswerRe: download a web page Pin
Mircea Neacsu6-Dec-23 5:00
Mircea Neacsu6-Dec-23 5:00 
GeneralRe: download a web page Pin
mike74116-Dec-23 13:28
mike74116-Dec-23 13:28 
GeneralRe: download a web page Pin
Mircea Neacsu6-Dec-23 14:18
Mircea Neacsu6-Dec-23 14:18 
AnswerRe: download a web page Pin
jschell6-Dec-23 6:52
jschell6-Dec-23 6:52 
AnswerRe: download a web page Pin
Gerry Schmitz6-Dec-23 7:28
mveGerry Schmitz6-Dec-23 7:28 
Questioncopying a file in C++17 Pin
mike74115-Dec-23 21:36
mike74115-Dec-23 21:36 
AnswerRe: copying a file in C++17 Pin
Richard MacCutchan5-Dec-23 22:07
mveRichard MacCutchan5-Dec-23 22:07 
AnswerRe: copying a file in C++17 Pin
jschell6-Dec-23 7:04
jschell6-Dec-23 7:04 
mike7411 wrote:
Is this a good way of doing it?


1. You want to check what happens if different drives are involved.
2. You want to verify paths are supported.
3. Catching one type of exception ignores possible other ones. Probably unlikely but in case.


mike7411 wrote:
buffer sizes are being used behind the scenes?


There are all sorts of possible buffers. Disk, OS, library.

Only concern however for that is speed. You can profile it. You can also use a OS command shell call for comparison.

If it matters, at least in my experience, OS shell commands will always be faster. This is especially true when copying directories. Seems reasonable given that the copy operation in the OS doesn't involve loading the data into the application.

Even so if you need it to be 'fast' for some reason then I would suggest that you need to change your requirements/design. Copying files, in general, is always 'slow'. Speed doesn't matter for single small files. So only matters for very large files and/or large numbers of files. But those will always be 'slow'. And there can be error conditions that make it even slower (which your code does not account for.) So attempting to guarantee a speed rate is never going to work.

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.