delphi 10.3: COM interface --> Import type libray

Advertisement

tirez
Guest

delphi 10.3: COM interface --> Import type libray

Hello
When import type libray i don't find any methodo or properties.
For example TSessionOptions no find Protocol, HostName etc properties
// *********************************************************************//
  TSessionOptions = class(TOleServer)
  private
    FIntf: _SessionOptions;
    function GetDefaultInterface: _SessionOptions;
  protected
    procedure InitServerData; override;
  public
    constructor Create(AOwner: TComponent); override;
    destructor  Destroy; override;
    procedure Connect; override;
    procedure ConnectTo(svrIntf: _SessionOptions);
    procedure Disconnect; override;
    property DefaultInterface: _SessionOptions read GetDefaultInterface;
  published
  end;

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,265
Location:
Prague, Czechia

Re: delphi 10.3: COM interface --> Import type libray

WinSCP .NET assembly uses IDispatch (late binding). So it does not expose the method and property names.

Reply with quote

Advertisement

You can post new topics in this forum