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);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)