Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
HINTERNET hNetSes ;
HINTERNET hFTP;
BOOL bResult;
hNetSes=InternetOpen ("Microsoft Internet Explorer",INTERNET_OPEN_TYPE_DIRECT,"",NULL,0);
if (hNetSes==NULL)
{
//error
return;}
hFTP = InternetConnect (hNetSes,EditFtpServer->Text.c_str(),INTERNET_INVALID_PORT_NUMBER,EditFtpUser->Text.c_str(),EditFtpPass->Text.c_str(),INTERNET_SERVICE_FTP,0,(DWORD)0);
if (hFTP==NULL)
{//error connecting ...
return;}
//put file on ftp
bResult=FtpPutFile(hFTP,EditLocaPath->Text.c_str(),cBuff.c_str(),FTP_TRANSFER_TYPE_BINARY,0);
if (!bResult)
{ //error transfering ...
}
//get file
bResult=FtpGetFile(hFTP,EditLocaPath->Text.c_str(),EditUploaded->Text.c_str(),false,FILE_ATTRIBUTE_NORMAL,FTP_TRANSFER_TYPE_BINARY,0);
if (!bResult)
{ //error transfering ...
}
InternetCloseHandle(hFTP);
InternetCloseHandle(hNetSes);