Page 1 of 1

RemoveDirectory

Posted: Tue 16 Aug 2016 13:01
by bauerh
I call the RemoveDirectory method and get a mistake:

[ILINK32 Fehler] Error: Nicht auflösbares externes '__fastcall Scsftpclient::TScSFTPClient::RemoveDirectoryW(const System::UnicodeString)' referenziert von P:\HOME \DEBUG\WIN32\MAIN.OBJ

why RemoveDirectoryW ??

regards
Horst

if (ListBox1->Items->Count >0)
{
for (I = 0; I <= (ListBox1->Items->Count - 1); I++)
{
ScSFTPClient1->RemoveDirectory(FtpPfad+AnsiString("/")+ListBox1->Items->Strings);
}
} //ENDE if (ListBox1->Items->Count >0)

Re: RemoveDirectory

Posted: Tue 16 Aug 2016 14:15
by ViktorV
To solve the issue, please try to add the following code in TScSFTPClient.hpp:

Code: Select all

#undef RemoveDirectory 
before the code line:

Code: Select all

void __fastcall RemoveFile(const System::UnicodeString FileName);

Re: RemoveDirectory

Posted: Wed 17 Aug 2016 08:35
by bauerh
Thanks for your help!
Horst

Re: RemoveDirectory

Posted: Wed 17 Aug 2016 08:44
by ViktorV
Feel free to contact us if you have any further questions about SecureBridge.