Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Congratulations for your great site. This site helped me more than university..."

Geography

Where in the world do Tek-Tips members come from?

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

amroberts (Programmer)
17 Aug 10 7:13
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
2ffat (Programmer)
17 Aug 10 7:56
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
I'm number 1,229!
I'm number 1,229!

amroberts (Programmer)
17 Aug 10 8:18
Would streams work for copying an exe file from one network drive to another?

If so would you please give me an example?
2ffat (Programmer)
17 Aug 10 12:05
Streams would work but why not use the Windows' API? You have have the flying pages show up.

 

James P. Cottingham
I'm number 1,229!
I'm number 1,229!

amroberts (Programmer)
17 Aug 10 12:54
Awesome stuff... got it working. Thanks very much for your help!!!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close