home *** CD-ROM | disk | FTP | other *** search
- unit TDMWebLib_TLB;
-
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.88.1.0.1.0 $
- // File generated on 18/05/2001 15:20:59 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: C:\Projects\2000\ITEC\cs-delphi\TDMWebLib.tlb (1)
- // IID\LCID: {3DA81917-9E9B-4155-A019-6CB4CC5A9731}\0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINNT\System32\Stdole2.tlb)
- // (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- TDMWebLibMajorVersion = 1;
- TDMWebLibMinorVersion = 0;
-
- LIBID_TDMWebLib: TGUID = '{3DA81917-9E9B-4155-A019-6CB4CC5A9731}';
-
- IID_IPackage: TGUID = '{053B0AA8-3D4D-450F-9F2F-FDEC2A07F2CA}';
- CLASS_Package: TGUID = '{47097128-B650-4762-8F55-8790B80F6610}';
- type
-
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IPackage = interface;
- IPackageDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- Package = IPackage;
-
-
- // *********************************************************************//
- // Interface: IPackage
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {053B0AA8-3D4D-450F-9F2F-FDEC2A07F2CA}
- // *********************************************************************//
- IPackage = interface(IDispatch)
- ['{053B0AA8-3D4D-450F-9F2F-FDEC2A07F2CA}']
- function Basic(iOption: Integer): Double; safecall;
- function Advanced(iOption: Integer): Double; safecall;
- function Professional(iOption: Integer): Double; safecall;
- end;
-
- // *********************************************************************//
- // DispIntf: IPackageDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {053B0AA8-3D4D-450F-9F2F-FDEC2A07F2CA}
- // *********************************************************************//
- IPackageDisp = dispinterface
- ['{053B0AA8-3D4D-450F-9F2F-FDEC2A07F2CA}']
- function Basic(iOption: Integer): Double; dispid 1;
- function Advanced(iOption: Integer): Double; dispid 2;
- function Professional(iOption: Integer): Double; dispid 3;
- end;
-
- // *********************************************************************//
- // The Class CoPackage provides a Create and CreateRemote method to
- // create instances of the default interface IPackage exposed by
- // the CoClass Package. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoPackage = class
- class function Create: IPackage;
- class function CreateRemote(const MachineName: string): IPackage;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoPackage.Create: IPackage;
- begin
- Result := CreateComObject(CLASS_Package) as IPackage;
- end;
-
- class function CoPackage.CreateRemote(const MachineName: string): IPackage;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_Package) as IPackage;
- end;
-
- end.
-