C++CS模型下客户端向服务器端发送汉字

C++CS模型下客户端向服务器端发送汉字,第1张

vc6
char buff[1024];
char buff2[102410];
int receiveLen;
strcpy(buff,"月光icepubdll");
typedef int (WINAPI ICEPUB_TCPSENDANDRECEIVETEXT)(char sendBuff, int sendBuffLen,char recvBuff,int recvMaxLen,char serverIP,int serverPort);
ICEPUB_TCPSENDANDRECEIVETEXT icePub_tcpSendAndReceiveText = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDlldll");
if(hDLLDrv)
{
icePub_tcpSendAndReceiveText=(ICEPUB_TCPSENDANDRECEIVETEXT )GetProcAddress(hDLLDrv,"icePub_tcpSendAndReceiveText");
}
if(icePub_tcpSendAndReceiveText)
receiveLen=icePub_tcpSendAndReceiveText(buff,strlen(buff),buff2,102410,"1921681100",8000);
if(hDLLDrv)
FreeLibrary(hDLLDrv);
AfxMessageBox(buff2);


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/13445156.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-07
下一篇 2023-08-07

发表评论

登录后才能评论

评论列表(0条)

保存