Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UpdateResource on Win95 Pin
Tomasz Sowinski13-Sep-01 9:55
Tomasz Sowinski13-Sep-01 9:55 
GeneralRe: UpdateResource on Win95 Pin
Joaquín M López Muñoz13-Sep-01 8:39
Joaquín M López Muñoz13-Sep-01 8:39 
GeneralContext Help Pin
13-Sep-01 5:52
suss13-Sep-01 5:52 
GeneralRe: Context Help Pin
Ganesh Ramaswamy13-Sep-01 7:12
Ganesh Ramaswamy13-Sep-01 7:12 
GeneralLogging to a text file Pin
User 988513-Sep-01 5:12
User 988513-Sep-01 5:12 
GeneralRe: Logging to a text file Pin
Tomasz Sowinski13-Sep-01 5:21
Tomasz Sowinski13-Sep-01 5:21 
GeneralRe: Logging to a text file Pin
User 988513-Sep-01 5:22
User 988513-Sep-01 5:22 
GeneralCopying files Pin
13-Sep-01 5:06
suss13-Sep-01 5:06 
I have to admit, I'm somewhat new to C++, so this question may not seem like much to a lot of the readers.

Using one of the common header files, is there a simple way to copy a file from place to place, modifying its name if necessary? I'm aware of how to do this using text files with fstream, but I'm curious about how to copy other file types.

If anyone responding would rather give a code example that try to explain it otherwise, I'll give you a scenario... say you're aiming to write a quick program that would copy the file c:\windows\desktop\file1.bmp to c:\copyoffile1.bmp.

Any help would be appreciated. Thanks.
GeneralRe: Copying files Pin
Tomasz Sowinski13-Sep-01 5:09
Tomasz Sowinski13-Sep-01 5:09 
GeneralRe: Copying files Pin
13-Sep-01 5:16
suss13-Sep-01 5:16 
GeneralDependencies Pin
13-Sep-01 5:02
suss13-Sep-01 5:02 
GeneralRe: Dependencies Pin
Tomasz Sowinski13-Sep-01 5:17
Tomasz Sowinski13-Sep-01 5:17 
GeneralC++ Pin
13-Sep-01 4:26
suss13-Sep-01 4:26 
GeneralRe: C++ Pin
Michael P Butler13-Sep-01 4:39
Michael P Butler13-Sep-01 4:39 
GeneralRe: C++ Pin
Tomasz Sowinski13-Sep-01 4:40
Tomasz Sowinski13-Sep-01 4:40 
GeneralRe: C++ Pin
[James Pullicino]13-Sep-01 4:46
[James Pullicino]13-Sep-01 4:46 
Generallearn STL / templates Pin
Chris Losinger13-Sep-01 4:46
professionalChris Losinger13-Sep-01 4:46 
GeneralRe: C++ Pin
13-Sep-01 5:00
suss13-Sep-01 5:00 
GeneralRe: learn STL / templates Pin
Tomasz Sowinski13-Sep-01 4:50
Tomasz Sowinski13-Sep-01 4:50 
GeneralRe: C++ Pin
Tomasz Sowinski13-Sep-01 5:15
Tomasz Sowinski13-Sep-01 5:15 
General_CrtIsValidHeapPtr Pin
Derek Lakin13-Sep-01 2:04
Derek Lakin13-Sep-01 2:04 
GeneralRe: _CrtIsValidHeapPtr Pin
Tomasz Sowinski13-Sep-01 2:08
Tomasz Sowinski13-Sep-01 2:08 
GeneralRe: _CrtIsValidHeapPtr Pin
Derek Lakin13-Sep-01 2:17
Derek Lakin13-Sep-01 2:17 
GeneralRe: _CrtIsValidHeapPtr Pin
Tomasz Sowinski13-Sep-01 2:28
Tomasz Sowinski13-Sep-01 2:28 
GeneralRe: _CrtIsValidHeapPtr Pin
Derek Lakin13-Sep-01 2:34
Derek Lakin13-Sep-01 2:34 

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.