Z
ZRWeng
Unregistered / Unconfirmed
GUEST, unregistred user!
在Type library中建立一个method,设定了参数,以及返回类型,保存的时候出现
如下错误信息:
function of automation interfaces must have a return type of HRESULT.
难道非得是过程,无返回类型才可?
IMTSDMObject = interface(IAppServer)
['{565B37D4-2AF0-4710-9DF2-A1D8D67083EA}']
//想定义如下方法:
//function getTheCarInfo(const theCar: WideString):wideString;
safecall;
//却不可得 :(
end;
如下错误信息:
function of automation interfaces must have a return type of HRESULT.
难道非得是过程,无返回类型才可?
IMTSDMObject = interface(IAppServer)
['{565B37D4-2AF0-4710-9DF2-A1D8D67083EA}']
//想定义如下方法:
//function getTheCarInfo(const theCar: WideString):wideString;
safecall;
//却不可得 :(
end;