Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to copy a file in Borland C++ Builder 6

Status
Not open for further replies.

amroberts

Programmer
Jun 21, 2010
13
ZA
Hi Guys,

Im trying to copy a file using CopyFileTo() but keep getting an error "Call to undefined function CopyFileTo()"

I've searched everywhere for an answer but no luck... Does anyone know what header file I need to include? Or is there another way to copy files?

Thanks, Andrew
 
I've never used CopyFileTo(). I've either used streams or the API. I use streams the most since I usually end up parsing the file anyway.

James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Would streams work for copying an exe file from one network drive to another?

If so would you please give me an example?
 
Streams would work but why not use the Windows' API? You have have the flying pages show up.



James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Awesome stuff... got it working. Thanks very much for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top