L
LSS
Unregistered / Unconfirmed
GUEST, unregistred user!
我引入一个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
在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