
本文共 726 字,大约阅读时间需要 2 分钟。
一、发送邮件
1、设置邮箱信息
2、使用SendMail发送邮件
SendMail(const string subject,const string text);
二、发送通知
1、手机端安装MT4,并获取MetaQuates ID
2、使用SendNotification发送通知到手机端MT4
SendNotification(const string message);
三、上传文件
1、设置ftp服务器
2、将要上传的文件保存到file文件夹中
3、通过SendFTP上传文件
SendFTP(const string file_name,const string ftp_path=NULL);
四、访问网站
1、添加允许访问的站点
2、通过WebRequest请求网站
int WebRequest(
const string method, // HTTP method
const string url, // URL
const string cookie, // cookie
const string referer, // referer
int timeout, // timeout
const char &data[], // the array of the HTTP message body
int data_size, // data[] array size in bytes
char &result[], // an array containing server response data
string &result_headers // headers of server response
);
发表评论
最新留言
关于作者
