18,356
社区成员
发帖
与我相关
我的任务
分享
bool CHttpImage::HttpUpLoading( // 返回False表示失败,True表示成功
const char *phostName, //目标服务器名
const char *postData , //要传输的数据地址
int iLen , // 字节数
char *pResult , // 返回指向结果的字符指针
int *iResultLen // 返回结果的字符长度
)
bool CHttpImage::HttpUpLoading( // 返回False表示失败,True表示成功
const char *phostName, // 文件名
const char *postData , // 指向要传输的字节数据块的首地址的指针
int iLen , // 字节数
char *pResult , // 返回指向结果的字符指针
int *iResultLen // 返回结果的字符长度
)
//调用举例:
char data[4096];
int len;
char Result[256];
int ResultLen;
if (pCHttpImage->HttpUpLoading(
_T("d:\localfiles\localfile.ext"),
data,
len,
Result,
&ResultLen
)
) {
//成功
} else {
//失败
}