S
szgh
Unregistered / Unconfirmed
GUEST, unregistred user!
下面代码错误,请大虾修改
var
tole: TOLEContainer;
v: Variant;
p: pOleStr;
begin
...
v := tOle.OleObjectInterface;
...
v.GetUserType(1,p); //错误行
修改成:v.GetUserType(vararrayof([1,longint(p)]));时编译通过,运行错Type not allowed in OLE Automation call
***为什么只能这样调用: tOle.OleObjectInterface.GetUserType(1,p);
var
tole: TOLEContainer;
v: Variant;
p: pOleStr;
begin
...
v := tOle.OleObjectInterface;
...
v.GetUserType(1,p); //错误行
修改成:v.GetUserType(vararrayof([1,longint(p)]));时编译通过,运行错Type not allowed in OLE Automation call
***为什么只能这样调用: tOle.OleObjectInterface.GetUserType(1,p);