davidmelvin
Technical User
Hello,
I'm trying to use CopyFile to copy some foles from one location on a drive to another location on another drive. The CopyTo folder is defined by information the user places in a ComboBox. When I try to use ComboBox1->Text for the lpszNewFile, I get an error "can't convert AnsiString to const char".
How can I use the information in the ComboBox Text property in the CopyFile function?
I'm trying to use CopyFile to copy some foles from one location on a drive to another location on another drive. The CopyTo folder is defined by information the user places in a ComboBox. When I try to use ComboBox1->Text for the lpszNewFile, I get an error "can't convert AnsiString to const char".
How can I use the information in the ComboBox Text property in the CopyFile function?