There seems to be a conflict in the parameters of OnDirectoryList event handler for ScSFTPClient in C++Builder. Activating the event handler in the RAD Studio XE7 development environment fails, but the event handler can be activated dynamically at run time with the command
ScSFTPClient->OnDirectoryList = ScSFTPClientDirectoryList;
placed in the constructot of the form, when ScSFTPClientDirectoryList is defined as the member method
void __fastcall ScSFTPClientDirectoryList(TObject *Sender, const UnicodeString Path, const TScSFTPFileHandle Handle, TScSFTPFileInfo *FileInfo, bool EOF);
OnDirectoryList eventhandler for ScSFTPClient in C++Builder
Re: OnDirectoryList eventhandler for ScSFTPClient in C++Builder
This is a known problem of the С++Builder XE7 compiler, and we can't influence it. As a workaround you can change TArray<System.Byte> to TBytes or TScSFTPFileHandle and assign the event handler in code at run-time instead of assigning it at design-time.