【发布时间】:2013-09-14 09:12:45
【问题描述】:
我有一个 Delphi7。
我用这篇文章:http://www.delphidabbler.com/articles?article=22&part=2 / Step 2
现在,我用 LoadTypeLib(未定义)创建了一个问题:
type
TMyClass = class(TAutoIntfObject, IMyIntf, IDispatch)
constructor Create();
protected
procedure helloWorld(); safecall;
end;
implementation
constructor TMyClass.Create();
var
TypeLib: ITypeLib;
s: WideString;
begin
s := ParamStr(0);
OleCheck(LoadTypeLib(PWideChar(s), TypeLib)); // ERR:LoadTypeLib is undefined.
inherited Create(TypeLib, IMyCallback);
end;
有什么建议吗?
【问题讨论】: