是没有证书,已经解决,看下面如何解决?
我引入一个mswinsck.ocx,
在OCX定义中如下
procedure GetData(var data: OleVariant); overload;
procedure GetData(var data: OleVariant; type_: OleVariant); overload;
procedure GetData(var data: OleVariant; type_: OleVariant; maxLen: OleVariant); overload;
在程序中调用时出现如下错误
...
var
WData:String;
WgToService:TWinsock;
...
WgToService.GetData(WData);<<有错
...
编译错误提示 There is no overloaded version of 'GetData' that can be called with these arguments