客户端汇总程序需要使用GatherClient.dll。
其中通过函数GatherClient发送数据,其原型为int GatherClient(char* GatherFile, char* strGatherReceiverIP, int iGatherReceiverPort)
三个参数分别为汇总的文件名、发送的目标IP地址和发送目标的端口。
举例:result=GatherClient("20060620173000","127.0.0.1","19275");
请教一下,如果将上面的语句修改成delphi版本,用下面的语句可以吗?有什么错误啊?
声明动态库函数,调用总是不成功,应该是那里的问题。望大家帮助。
具体如下:
 function GatherClient(GatherFile:string;strGatherReceiverIP:string;iGatherReceiverPort:integer):integer;stdcall external 'GatherClient.dll';调用:i:=GatherClient('GASS060719102338.txt','127.0.0.1',19275);系统提示是:access violation at adress6bc8bc2 in module mfc42.dll