|
Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LInetFtp::RemoveFile
#include "ltwrappr.h"
L_INT LInetFtp::RemoveFile(pszRemote)
|
L_TCHAR *pszRemote; |
/* name of the file to delete */ |
Deletes a file stored on the FTP server.
|
Parameter |
Description |
|
pszRemote |
Character string that contains the name of the file to delete on the FTP server. |
Returns
|
SUCCESS |
The function was successful. |
|
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
|
LTFIL For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
|
Functions: |
LInetFtp::SendFile, LInetFtp::GetFile, LInetFtp::RenameFile, Class Members |
|
Topics: |
|
|
|
Example
This example deletes a remote file on an FTP server.
L_INT LInetFtp_RemoveFileExample(HWND hWndParent, L_TCHAR *pszRename)
{
L_INT nRet;
LInetFtp InetFtp(TEXT("www.leadtools.com"));
// Checking if the connection failed
nRet = InetFtp.GetErrorFromList ();
if(nRet != SUCCESS)
{
InetFtp.DisplayError (hWndParent, TEXT("Can't connect to the FTP server"));
return nRet;
}
nRet = InetFtp.RemoveFile(pszRename);
if(nRet != SUCCESS)
{
InetFtp.DisplayError(hWndParent, TEXT("Can't delete a remote file, an error within the server"));
return nRet;
}
return SUCCESS;
}