1

私はDelphi7を持っています。

この記事を使用します: http://www.delphidabbler.com/articles?article=22&part=2 / ステップ 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;

助言がありますか?

4

1 に答える 1