⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 project1_tlb.pas

📁 用delphi5实现SOAP通信
💻 PAS
字号:
unit Project1_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 23/5/2001 11:39 from Type Library described below.

// ************************************************************************ //
// Type Lib: C:\WIN98\Desktop\webService_3\ServiceCOM.tlb (1)
// IID\LCID: {A913E90B-B58B-4F36-8C6B-91E98E9452FB}\0
// Helpfile: 
// DepndLst: 
//   (1) v2.0 stdole, (C:\WIN98\SYSTEM\StdOle2.Tlb)
//   (2) v4.0 StdVCL, (C:\WIN98\SYSTEM\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
  Project1MajorVersion = 1;
  Project1MinorVersion = 0;

  LIBID_Project1: TGUID = '{A913E90B-B58B-4F36-8C6B-91E98E9452FB}';

  IID_ISummer: TGUID = '{16726968-F24E-4808-907A-5CAC7936FBF4}';
  CLASS_Summer: TGUID = '{DC23123D-289F-4CF7-A1D8-C4D6BE41FE50}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  ISummer = interface;
  ISummerDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  Summer = ISummer;


// *********************************************************************//
// Interface: ISummer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {16726968-F24E-4808-907A-5CAC7936FBF4}
// *********************************************************************//
  ISummer = interface(IDispatch)
    ['{16726968-F24E-4808-907A-5CAC7936FBF4}']
    function  GetSum(const x: WideString; const y: WideString): WideString; safecall;
  end;

// *********************************************************************//
// DispIntf:  ISummerDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {16726968-F24E-4808-907A-5CAC7936FBF4}
// *********************************************************************//
  ISummerDisp = dispinterface
    ['{16726968-F24E-4808-907A-5CAC7936FBF4}']
    function  GetSum(const x: WideString; const y: WideString): WideString; dispid 1;
  end;

// *********************************************************************//
// The Class CoSummer provides a Create and CreateRemote method to          
// create instances of the default interface ISummer exposed by              
// the CoClass Summer. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoSummer = class
    class function Create: ISummer;
    class function CreateRemote(const MachineName: string): ISummer;
  end;

implementation

uses ComObj;

class function CoSummer.Create: ISummer;
begin
  Result := CreateComObject(CLASS_Summer) as ISummer;
end;

class function CoSummer.CreateRemote(const MachineName: string): ISummer;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Summer) as ISummer;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -