我用Delphi写了一个最简单的ocx,里面只包含一个最简单的functionfunction Test:string;
begin
Result := 'hello';
end;但是在html里,js访问的时候却出现“对象不支持此属性或方法”,我对Delphi不是很熟悉,不知道是哪里没有弄好,请知道的帮忙一把,谢谢了!
begin
Result := 'hello';
end;但是在html里,js访问的时候却出现“对象不支持此属性或方法”,我对Delphi不是很熟悉,不知道是哪里没有弄好,请知道的帮忙一把,谢谢了!
2.大致的实现代码:
function xxxx.Test(var Ret: WideString): HResult;
begin
Ret := 'hello';
Result := S_OK;
end;