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

📄 dataserver_tlb.pas

📁 delphi写的基于server和client的聊天源码 有参考意义
💻 PAS
字号:
unit dataserver_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  $
// File generated on 2003-12-08 15:59:05 from Type Library described below.

// ************************************************************************  //
// Type Lib: D:\新建文件夹\wgdocument\Glasses\server\dataserver.tlb (1)
// LIBID: {87A4A1FE-EC64-4AB2-B4E1-2390A60690EF}
// LCID: 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. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}

interface

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


// *********************************************************************//
// 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
  dataserverMajorVersion = 1;
  dataserverMinorVersion = 0;

  LIBID_dataserver: TGUID = '{87A4A1FE-EC64-4AB2-B4E1-2390A60690EF}';

  IID_Igalssdata: TGUID = '{A2E5A02E-3B70-4135-A087-97B62F39C2A8}';
  CLASS_galssdata: TGUID = '{3D62BBB9-1C58-4825-918C-E28FF5E2A9EA}';
  IID_Ieyesale: TGUID = '{C6FEFB39-8A7B-4BCA-B28E-668F2630208D}';
  CLASS_eyesale: TGUID = '{020B7BD8-8B2E-4D57-B95E-C5BB807C6774}';
  IID_Imessagedbase: TGUID = '{E66BBD6C-6A67-4E81-9C12-C15683C5842D}';
  CLASS_messagedbase: TGUID = '{B7DA64E4-198E-481F-85E7-084BC9DFD806}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  Igalssdata = interface;
  IgalssdataDisp = dispinterface;
  Ieyesale = interface;
  IeyesaleDisp = dispinterface;
  Imessagedbase = interface;
  ImessagedbaseDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  galssdata = Igalssdata;
  eyesale = Ieyesale;
  messagedbase = Imessagedbase;


// *********************************************************************//
// Interface: Igalssdata
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A2E5A02E-3B70-4135-A087-97B62F39C2A8}
// *********************************************************************//
  Igalssdata = interface(IAppServer)
    ['{A2E5A02E-3B70-4135-A087-97B62F39C2A8}']
  end;

// *********************************************************************//
// DispIntf:  IgalssdataDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A2E5A02E-3B70-4135-A087-97B62F39C2A8}
// *********************************************************************//
  IgalssdataDisp = dispinterface
    ['{A2E5A02E-3B70-4135-A087-97B62F39C2A8}']
    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: Ieyesale
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {C6FEFB39-8A7B-4BCA-B28E-668F2630208D}
// *********************************************************************//
  Ieyesale = interface(IAppServer)
    ['{C6FEFB39-8A7B-4BCA-B28E-668F2630208D}']
    procedure goods_mx(const ddno: WideString; const goodsno: WideString; const bno: WideString; 
                       number: Integer; price: Double; const tablename: WideString); safecall;
    procedure goodsout(const bno: WideString); safecall;
  end;

// *********************************************************************//
// DispIntf:  IeyesaleDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {C6FEFB39-8A7B-4BCA-B28E-668F2630208D}
// *********************************************************************//
  IeyesaleDisp = dispinterface
    ['{C6FEFB39-8A7B-4BCA-B28E-668F2630208D}']
    procedure goods_mx(const ddno: WideString; const goodsno: WideString; const bno: WideString; 
                       number: Integer; price: Double; const tablename: WideString); dispid 1;
    procedure goodsout(const bno: WideString); dispid 3;
    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: Imessagedbase
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {E66BBD6C-6A67-4E81-9C12-C15683C5842D}
// *********************************************************************//
  Imessagedbase = interface(IAppServer)
    ['{E66BBD6C-6A67-4E81-9C12-C15683C5842D}']
    procedure logined(const user: WideString; const pwd: WideString; const bm: WideString; 
                      const ip: WideString; const compname: WideString; out fg: OleVariant); safecall;
    procedure gettj(const lmbh: WideString; const fbdate: WideString; out fjdata: OleVariant; 
                    out fjname: OleVariant; out fjtype: OleVariant; out fjsize: OleVariant); safecall;
    procedure closed(const action: WideString; const ip: WideString); safecall;
    procedure query1(const inputed: WideString; out ownerdata: OleVariant); safecall;
    procedure query2(const inputed: WideString); safecall;
    procedure opened(const queryed: WideString); safecall;
    procedure exesqled(const inputed: WideString); safecall;
    procedure sendmsg(const ipstr: WideString; const values: WideString; const sendobj: WideString); safecall;
    procedure getmsg(out values1: OleVariant; out values2: OleVariant; const comp: WideString); safecall;
    procedure addcomip(out ipchar: OleVariant; out compters: OleVariant; out counts: OleVariant); safecall;
    procedure getips(out viewips: OleVariant; out viewname: OleVariant; out counts: OleVariant); safecall;
  end;

// *********************************************************************//
// DispIntf:  ImessagedbaseDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {E66BBD6C-6A67-4E81-9C12-C15683C5842D}
// *********************************************************************//
  ImessagedbaseDisp = dispinterface
    ['{E66BBD6C-6A67-4E81-9C12-C15683C5842D}']
    procedure logined(const user: WideString; const pwd: WideString; const bm: WideString; 
                      const ip: WideString; const compname: WideString; out fg: OleVariant); dispid 1;
    procedure gettj(const lmbh: WideString; const fbdate: WideString; out fjdata: OleVariant; 
                    out fjname: OleVariant; out fjtype: OleVariant; out fjsize: OleVariant); dispid 2;
    procedure closed(const action: WideString; const ip: WideString); dispid 3;
    procedure query1(const inputed: WideString; out ownerdata: OleVariant); dispid 4;
    procedure query2(const inputed: WideString); dispid 5;
    procedure opened(const queryed: WideString); dispid 6;
    procedure exesqled(const inputed: WideString); dispid 7;
    procedure sendmsg(const ipstr: WideString; const values: WideString; const sendobj: WideString); dispid 8;
    procedure getmsg(out values1: OleVariant; out values2: OleVariant; const comp: WideString); dispid 9;
    procedure addcomip(out ipchar: OleVariant; out compters: OleVariant; out counts: OleVariant); dispid 10;
    procedure getips(out viewips: OleVariant; out viewname: OleVariant; out counts: OleVariant); dispid 11;
    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 Cogalssdata provides a Create and CreateRemote method to          
// create instances of the default interface Igalssdata exposed by              
// the CoClass galssdata. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  Cogalssdata = class
    class function Create: Igalssdata;
    class function CreateRemote(const MachineName: string): Igalssdata;
  end;

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

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

implementation

uses ComObj;

class function Cogalssdata.Create: Igalssdata;
begin
  Result := CreateComObject(CLASS_galssdata) as Igalssdata;
end;

class function Cogalssdata.CreateRemote(const MachineName: string): Igalssdata;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_galssdata) as Igalssdata;
end;

class function Coeyesale.Create: Ieyesale;
begin
  Result := CreateComObject(CLASS_eyesale) as Ieyesale;
end;

class function Coeyesale.CreateRemote(const MachineName: string): Ieyesale;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_eyesale) as Ieyesale;
end;

class function Comessagedbase.Create: Imessagedbase;
begin
  Result := CreateComObject(CLASS_messagedbase) as Imessagedbase;
end;

class function Comessagedbase.CreateRemote(const MachineName: string): Imessagedbase;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_messagedbase) as Imessagedbase;
end;

end.

⌨️ 快捷键说明

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