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

📄 callbacksrv_tlb.pas

📁 这是一个网络数据库回调例程,基于SocketConnection的
💻 PAS
字号:
unit CallbackSrv_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.100  $
// File generated on 10/15/00 10:32:28 AM from Type Library described below.

// ************************************************************************ //
// Type Lib: D:\dev\clients\hookup\callbackd5\CallbackSrv.tlb (1)
// IID\LCID: {D9ACEC60-B4F9-11D1-9BB9-0020E00C067C}\0
// Helpfile: 
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINNT\System32\STDOLE2.TLB)
//   (2) v1.0 Midas, (D:\dev\midasdll\midas.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
interface

uses Windows, ActiveX, Classes, Graphics, 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
  CallbackSrvMajorVersion = 1;
  CallbackSrvMinorVersion = 0;

  LIBID_CallbackSrv: TGUID = '{D9ACEC60-B4F9-11D1-9BB9-0020E00C067C}';

  IID_IServer: TGUID = '{D9ACEC61-B4F9-11D1-9BB9-0020E00C067C}';
  CLASS_Server: TGUID = '{D9ACEC63-B4F9-11D1-9BB9-0020E00C067C}';
  IID_IClient: TGUID = '{28B00B40-CBB5-11D1-9BB9-0020E00C067C}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IServer = interface;
  IServerDisp = dispinterface;
  IClient = interface;
  IClientDisp = dispinterface;

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


// *********************************************************************//
// Interface: IServer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D9ACEC61-B4F9-11D1-9BB9-0020E00C067C}
// *********************************************************************//
  IServer = interface(IDispatch)
    ['{D9ACEC61-B4F9-11D1-9BB9-0020E00C067C}']
    procedure TraverseTable; safecall;
    procedure SetCallback(aCallback: OleVariant); safecall;
  end;

// *********************************************************************//
// DispIntf:  IServerDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D9ACEC61-B4F9-11D1-9BB9-0020E00C067C}
// *********************************************************************//
  IServerDisp = dispinterface
    ['{D9ACEC61-B4F9-11D1-9BB9-0020E00C067C}']
    procedure TraverseTable; dispid 2;
    procedure SetCallback(aCallback: OleVariant); dispid 1;
  end;

// *********************************************************************//
// Interface: IClient
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {28B00B40-CBB5-11D1-9BB9-0020E00C067C}
// *********************************************************************//
  IClient = interface(IDispatch)
    ['{28B00B40-CBB5-11D1-9BB9-0020E00C067C}']
    procedure Done; safecall;
    procedure Progress(RecNo: Integer; RecCount: Integer; var Continue: WordBool); safecall;
  end;

// *********************************************************************//
// DispIntf:  IClientDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {28B00B40-CBB5-11D1-9BB9-0020E00C067C}
// *********************************************************************//
  IClientDisp = dispinterface
    ['{28B00B40-CBB5-11D1-9BB9-0020E00C067C}']
    procedure Done; dispid 1;
    procedure Progress(RecNo: Integer; RecCount: Integer; var Continue: WordBool); dispid 2;
  end;

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

implementation

uses ComObj;

class function CoServer.Create: IServer;
begin
  Result := CreateComObject(CLASS_Server) as IServer;
end;

class function CoServer.CreateRemote(const MachineName: string): IServer;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Server) as IServer;
end;

end.

⌨️ 快捷键说明

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