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

📄 project1_tlb.pas

📁 自己开发的delphi 100lei 内容丰富 绝对不要错过了啊。
💻 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.130.1.0.1.0.1.6  $
// File generated on 2002-6-28 10:14:42 from Type Library described below.

// ************************************************************************  //
// Type Lib: F:\JasonCenter\Delphi 6 数据库应用程序100例\3综合与远程技术\3022\Project1.tlb (1)
// LIBID: {8067528F-9774-477B-BE95-F118E53BF6D9}
// LCID: 0
// Helpfile: 
// DepndLst: 
//   (1) v2.0 stdole, (E:\WINNT\System32\stdole2.tlb)
//   (2) v4.0 StdVCL, (E:\WINNT\System32\stdvcl40.dll)
//   (3) v1.0 Midas, (E:\WINNT\System32\midas.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
  

// *********************************************************************//
// 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 = '{8067528F-9774-477B-BE95-F118E53BF6D9}';

  IID_IMyFirstMTSServer: TGUID = '{8EA2B9E0-4FE6-41A1-8640-DD35284A5136}';
  CLASS_MyFirstMTSServer: TGUID = '{7AB040D2-E122-4315-8E0D-99B6B552F18A}';
  IID_IMTSDataModule: TGUID = '{4420E380-4588-4C31-9707-33EC060C3FCB}';
  CLASS_MTSDataModule: TGUID = '{0D659EDA-43CA-4987-B59F-6A24AF76888C}';
  IID_IMyFirstMTSDM: TGUID = '{6C9FE6F6-DBFA-4854-81AA-4847E3BFE798}';
  CLASS_MyFirstMTSDM: TGUID = '{E2F6F20A-AD9E-4036-8ECA-2DC28E4633DF}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IMyFirstMTSServer = interface;
  IMyFirstMTSServerDisp = dispinterface;
  IMTSDataModule = interface;
  IMTSDataModuleDisp = dispinterface;
  IMyFirstMTSDM = interface;
  IMyFirstMTSDMDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  MyFirstMTSServer = IMyFirstMTSServer;
  MTSDataModule = IMTSDataModule;
  MyFirstMTSDM = IMyFirstMTSDM;


// *********************************************************************//
// Interface: IMyFirstMTSServer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {8EA2B9E0-4FE6-41A1-8640-DD35284A5136}
// *********************************************************************//
  IMyFirstMTSServer = interface(IDispatch)
    ['{8EA2B9E0-4FE6-41A1-8640-DD35284A5136}']
    function NewMethod(Param1: Integer): WideString; safecall;
  end;

// *********************************************************************//
// DispIntf:  IMyFirstMTSServerDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {8EA2B9E0-4FE6-41A1-8640-DD35284A5136}
// *********************************************************************//
  IMyFirstMTSServerDisp = dispinterface
    ['{8EA2B9E0-4FE6-41A1-8640-DD35284A5136}']
    function NewMethod(Param1: Integer): WideString; dispid 1;
  end;

// *********************************************************************//
// Interface: IMTSDataModule
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {4420E380-4588-4C31-9707-33EC060C3FCB}
// *********************************************************************//
  IMTSDataModule = interface(IAppServer)
    ['{4420E380-4588-4C31-9707-33EC060C3FCB}']
  end;

// *********************************************************************//
// DispIntf:  IMTSDataModuleDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {4420E380-4588-4C31-9707-33EC060C3FCB}
// *********************************************************************//
  IMTSDataModuleDisp = dispinterface
    ['{4420E380-4588-4C31-9707-33EC060C3FCB}']
    function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer; 
                             out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                           Options: Integer; const CommandText: WideString; var Params: OleVariant; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function AS_GetProviderNames: OleVariant; dispid 20000003;
    function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// Interface: IMyFirstMTSDM
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {6C9FE6F6-DBFA-4854-81AA-4847E3BFE798}
// *********************************************************************//
  IMyFirstMTSDM = interface(IAppServer)
    ['{6C9FE6F6-DBFA-4854-81AA-4847E3BFE798}']
  end;

// *********************************************************************//
// DispIntf:  IMyFirstMTSDMDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {6C9FE6F6-DBFA-4854-81AA-4847E3BFE798}
// *********************************************************************//
  IMyFirstMTSDMDisp = dispinterface
    ['{6C9FE6F6-DBFA-4854-81AA-4847E3BFE798}']
    function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer; 
                             out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                           Options: Integer; const CommandText: WideString; var Params: OleVariant; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function AS_GetProviderNames: OleVariant; dispid 20000003;
    function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                           var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

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

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

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

implementation

uses ComObj;

class function CoMyFirstMTSServer.Create: IMyFirstMTSServer;
begin
  Result := CreateComObject(CLASS_MyFirstMTSServer) as IMyFirstMTSServer;
end;

class function CoMyFirstMTSServer.CreateRemote(const MachineName: string): IMyFirstMTSServer;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_MyFirstMTSServer) as IMyFirstMTSServer;
end;

class function CoMTSDataModule.Create: IMTSDataModule;
begin
  Result := CreateComObject(CLASS_MTSDataModule) as IMTSDataModule;
end;

class function CoMTSDataModule.CreateRemote(const MachineName: string): IMTSDataModule;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_MTSDataModule) as IMTSDataModule;
end;

class function CoMyFirstMTSDM.Create: IMyFirstMTSDM;
begin
  Result := CreateComObject(CLASS_MyFirstMTSDM) as IMyFirstMTSDM;
end;

class function CoMyFirstMTSDM.CreateRemote(const MachineName: string): IMyFirstMTSDM;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_MyFirstMTSDM) as IMyFirstMTSDM;
end;

end.

⌨️ 快捷键说明

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