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

📄 transmanager_tlb.pas

📁 拥有全套神州数码马易飞ERP源码,现上传部分源码
💻 PAS
字号:
unit TransManager_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.11.1.75  $
// File generated on 89/12/12 AM 09:49:31 from Type Library described below.

// ************************************************************************ //
// Type Lib: N:\Work\670\N100\TRANSMANAGER.tlb
// IID\LCID: {1A87A040-5CF2-11D2-AA3D-0080C86C554E}\0
// Helpfile: 
// HelpString: Project2 Library
// Version:    1.0
// ************************************************************************ //

interface

uses Windows, ActiveX, Classes, Graphics, 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
  LIBID_TransManager: TGUID = '{1A87A040-5CF2-11D2-AA3D-0080C86C554E}';
  IID_ITxnManager: TGUID = '{1A87A041-5CF2-11D2-AA3D-0080C86C554E}';
  CLASS_TxnManager: TGUID = '{1A87A043-5CF2-11D2-AA3D-0080C86C554E}';
type

// *********************************************************************//
// Forward declaration of interfaces defined in Type Library            //
// *********************************************************************//
  ITxnManager = interface;
  ITxnManagerDisp = dispinterface;

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

// *********************************************************************//
// Interface: ITxnManager
// Flags:     (4432) Hidden Dual OleAutomation Dispatchable
// GUID:      {1A87A041-5CF2-11D2-AA3D-0080C86C554E}
// *********************************************************************//
  ITxnManager = interface(IDispatch)
    ['{1A87A041-5CF2-11D2-AA3D-0080C86C554E}']
    function DoIt(xValue: OleVariant): WordBool; safecall;
    procedure CloseCom; safecall;
    function Get_ErrorCode: Integer; safecall;
    function Get_ErrorDescript: WideString; safecall;
    function Get_ResultDesc: OleVariant; safecall;
    function Get_ReturnSeq: WideString; safecall;
    property ErrorCode: Integer read Get_ErrorCode;
    property ErrorDescript: WideString read Get_ErrorDescript;
    property ResultDesc: OleVariant read Get_ResultDesc;
    property ReturnSeq: WideString read Get_ReturnSeq;
  end;

// *********************************************************************//
// DispIntf:  ITxnManagerDisp
// Flags:     (4432) Hidden Dual OleAutomation Dispatchable
// GUID:      {1A87A041-5CF2-11D2-AA3D-0080C86C554E}
// *********************************************************************//
  ITxnManagerDisp = dispinterface
    ['{1A87A041-5CF2-11D2-AA3D-0080C86C554E}']
    function DoIt(xValue: OleVariant): WordBool; dispid 1;
    procedure CloseCom; dispid 2;
    property ErrorCode: Integer readonly dispid 3;
    property ErrorDescript: WideString readonly dispid 4;
    property ResultDesc: OleVariant readonly dispid 5;
    property ReturnSeq: WideString readonly dispid 6;
  end;

  CoTxnManager = class
    class function Create: ITxnManager;
    class function CreateRemote(const MachineName: string): ITxnManager;
  end;

implementation

uses ComObj;

class function CoTxnManager.Create: ITxnManager;
begin
  Result := CreateComObject(CLASS_TxnManager) as ITxnManager;
end;

class function CoTxnManager.CreateRemote(const MachineName: string): ITxnManager;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_TxnManager) as ITxnManager;
end;

end.

⌨️ 快捷键说明

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