1,317
社区成员




static const AnsiString filename="Para2.ini";
static const AnsiString cepath="/nandflash/";
ftp1->Host = "192.168.18.200";
//登录Windows所用的帐号和密码,用来通过本机防火墙,不是ftp的帐号密码
ftp1->Username="Administrator";
ftp1->Password= "123";
ftp1->Connect();
if (ftp1->Connected())
{
ftp1->ChangeDir(path);
ftp1->TransferType=ftASCII;
long m_fsize=ftp1->Size(filename);
ftp1->TransferType=ftBinary;
ftp1->Get(cepath,"d:"+filename,true);
ShowMessage("DownLoad!");
}
else
{
ShowMessage("connect fail");
}
ftp1->Disconnect();
我估计还是代码哪里有问题