Copy files in C++ Builder 3 using the "flying files"
Posted on 2000-01-18
I need to copy files from C: to A:, but I want to show the 'flying files' so the user wait to the files be copied (one at a time), I am using the following code; it works in Delphi but it doesn't work in C++ Builder 3:
String Name = "My_File.txt", Form_Dir, To_Dir;
From_Dir = "C:/MyDir/" + Name;
To_Dir = "A:/" + Name;
ShellOp->hwnd = Form1->Handle;
ShellOp->wFunc = FO_COPY;
ShellOp->pFrom = From_Dir.c_str() + NULL + NULL;
ShellOp->pTo = To_Dir.c_str() + NULL + NULL;
ShellOp->hNameMappings = NULL;
What is going wrong with it?, I do not mind to use any other code anyway, it just have to work.
Thank you very much for your help