faqts : Computers : Programming : Languages : C++

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

110 of 197 people (56%) answered Yes
Recently 7 of 10 people (70%) answered Yes


How can I easily copy a file in MS Visual C++?

Jun 13th, 2001 02:45
Robert Walker, Mick Dobra,

BOOL CopyFile(
  LPCTSTR lpExistingFileName,
                          // pointer to name of an existing file
  LPCTSTR lpNewFileName,  // pointer to filename to copy to
  BOOL bFailIfExists      // flag for operation if file exists
where bFailIfExists = FALSE if you want to overwrite it if it exists