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

📄 s_tt_tlb.pas

📁 实例4学院信息管理系统 - RAR 档案文件
💻 PAS
📖 第 1 页 / 共 2 页
字号:
unit S_TT_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  $
// File generated on 02-2-22 下午 11:14:56 from Type Library described below.

// *************************************************************************//
// NOTE:                                                                      
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties  
// which return objects that may need to be explicitly created via a function 
// call prior to any access via the property. These items have been disabled  
// in order to prevent accidental use from within the object inspector. You   
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively   
// removing them from the $IFDEF blocks. However, such items must still be    
// programmatically created via a method of the appropriate CoClass before    
// they can be used.                                                          
// ************************************************************************ //
// Type Lib: D:\DelphiBook\实例4多层数据库\Server\S_TT.tlb (1)
// IID\LCID: {2BD18382-772D-4EB3-9F86-8146FC019575}\0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINNT\System32\midas.dll)
//   (2) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
//   (3) 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, 
  MIDAS;

// *********************************************************************//
// 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
  S_TTMajorVersion = 1;
  S_TTMinorVersion = 0;

  LIBID_S_TT: TGUID = '{2BD18382-772D-4EB3-9F86-8146FC019575}';

  IID_IRDM: TGUID = '{0997AC4B-7EF0-483F-B349-DFDDEB4D99AF}';
  CLASS_RDM: TGUID = '{31156339-9ECD-4A8C-BDC0-6DFAB3A1833A}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IRDM = interface;
  IRDMDisp = dispinterface;

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


// *********************************************************************//
// Declaration of structures, unions and aliases.                         
// *********************************************************************//
  POleVariant1 = ^OleVariant; {*}


// *********************************************************************//
// Interface: IRDM
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {0997AC4B-7EF0-483F-B349-DFDDEB4D99AF}
// *********************************************************************//
  IRDM = interface(IAppServer)
    ['{0997AC4B-7EF0-483F-B349-DFDDEB4D99AF}']
    procedure S_Add(var v_pkg: OleVariant); safecall;
    procedure S_Md(var v_pkg: OleVariant); safecall;
    procedure S_C_Add(const pStudent_id: WideString; const pcourse: WideString; 
                      const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                      const pbegin_date: WideString; const pend_date: WideString); safecall;
    procedure S_C_Md(const pStudent_id: WideString; const pcourse: WideString; 
                     const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                     const pbegin_date: WideString; const pend_date: WideString); safecall;
    procedure S_G_Md(const pStudent_id: WideString; const pcourse: WideString; pgrades: Integer); safecall;
    procedure S_Year(const CurrentYear: WideString); safecall;
  end;

// *********************************************************************//
// DispIntf:  IRDMDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {0997AC4B-7EF0-483F-B349-DFDDEB4D99AF}
// *********************************************************************//
  IRDMDisp = dispinterface
    ['{0997AC4B-7EF0-483F-B349-DFDDEB4D99AF}']
    procedure S_Add(var v_pkg: OleVariant); dispid 1;
    procedure S_Md(var v_pkg: OleVariant); dispid 2;
    procedure S_C_Add(const pStudent_id: WideString; const pcourse: WideString; 
                      const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                      const pbegin_date: WideString; const pend_date: WideString); dispid 3;
    procedure S_C_Md(const pStudent_id: WideString; const pcourse: WideString; 
                     const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                     const pbegin_date: WideString; const pend_date: WideString); dispid 4;
    procedure S_G_Md(const pStudent_id: WideString; const pcourse: WideString; pgrades: Integer); dispid 5;
    procedure S_Year(const CurrentYear: WideString); dispid 6;
    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 CoRDM provides a Create and CreateRemote method to          
// create instances of the default interface IRDM exposed by              
// the CoClass RDM. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoRDM = class
    class function Create: IRDM;
    class function CreateRemote(const MachineName: string): IRDM;
  end;


// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object    : TRDM
// Help String      : RDM Object
// Default Interface: IRDM
// Def. Intf. DISP? : No
// Event   Interface: 
// TypeFlags        : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  TRDMProperties= class;
{$ENDIF}
  TRDM = class(TOleServer)
  private
    FIntf:        IRDM;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
    FProps:       TRDMProperties;
    function      GetServerProperties: TRDMProperties;
{$ENDIF}
    function      GetDefaultInterface: IRDM;
  protected
    procedure InitServerData; override;
  public
    constructor Create(AOwner: TComponent); override;
    destructor  Destroy; override;
    procedure Connect; override;
    procedure ConnectTo(svrIntf: IRDM);
    procedure Disconnect; override;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant;
    function  AS_GetProviderNames: OleVariant;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant);
    procedure S_Add(var v_pkg: OleVariant);
    procedure S_Md(var v_pkg: OleVariant);
    procedure S_C_Add(const pStudent_id: WideString; const pcourse: WideString; 
                      const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                      const pbegin_date: WideString; const pend_date: WideString);
    procedure S_C_Md(const pStudent_id: WideString; const pcourse: WideString; 
                     const pcourse_t: WideString; pperiod: Integer; pcredit: Integer; 
                     const pbegin_date: WideString; const pend_date: WideString);
    procedure S_G_Md(const pStudent_id: WideString; const pcourse: WideString; pgrades: Integer);
    procedure S_Year(const CurrentYear: WideString);
    property  DefaultInterface: IRDM read GetDefaultInterface;
  published
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
    property Server: TRDMProperties read GetServerProperties;
{$ENDIF}
  end;

{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
// *********************************************************************//

⌨️ 快捷键说明

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