
l 函数原型:
int WINAPI icePub_postUrl(char hostAddress,char strObject,char m_param,char Referer,char strHtmlText,int textMaxLen,char strProxy)
输入:hostAddress domain地址
strObject 访问路径对象
param 参数
Referer 链接来源URL
textMaxLen strHtmlText的最大长度
strProxy 代理服务器地址
输出:strHtmlText 返回的页面代码
l VC连接Lib方式声明
__declspec(dllexport)
int WINAPI icePub_postUrl(char hostAddress,char strObject,char m_param,char Referer,char strHtmlText,int textMaxLen,char strProxy);
l 动态调用例程
VC sample代码:
char buffer[102420+1];
typedef int (WINAPI ICEPUB_POSTURL)(char hostAddress,char strObject,char m_param,char Referer,char strHtmlText,int textMaxLen,char strProxy);
ICEPUB_POSTURL icePub_postUrl = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDlldll");
if(hDLLDrv)
{
icePub_postUrl = (ICEPUB_POSTURL )GetProcAddress(hDLLDrv, "icePub_postUrl");
}
if(icePub_postUrl)
icePub_postUrl("+", ">
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)