上一页 1 ··· 152 153 154 155 156 157 158 159 160 ··· 204 下一页
摘要: unit uFun;interfaceuses SysUtils, Variants, db, adodb, Classes, EncdDecd;function ParametersToVariant(par:TParameters): OleVariant;procedure VariantToParameters(input:OleVariant;par:TParameters);function ParamsToVariant(par:TParams): OleVariant;procedure VariantToParams(input:OleVariant;par:TParams) 阅读全文
posted @ 2012-01-11 22:46 delphi中间件 阅读(785) 评论(0) 推荐(0)
摘要: unit uTestSvr;{$WARN SYMBOL_PLATFORM OFF}interfaceuses Windows, Messages, SysUtils, Classes, ComServ, ComObj, VCLCom, DataBkr, DBClient, MidServer_TLB, StdVcl, DB, ADODB, Provider, Variants, Forms, ThreadComLib;type TsvrDM = class(TRemoteDataModule, ITest) private { Private declarations } function G 阅读全文
posted @ 2012-01-11 22:44 delphi中间件 阅读(997) 评论(0) 推荐(0)
摘要: // TThreadedClassFactory.Create (ComServer, TsvrDM, CLASS_Test, // create com thread pooling// ciMultiInstance);unit ThreadComLib;{$IFDEF VER100}{$DEFINE D3}{$ENDIF}interfaceuses Windows, ActiveX, Classes, ComObj, Controls, ExtCtrls, Grids, Variants, VCLCom, forms ;{ General COM threading types }typ 阅读全文
posted @ 2012-01-11 22:42 delphi中间件 阅读(947) 评论(0) 推荐(0)
摘要: unit ProcPool;interfaceuses Classes, Windows, SysUtils, ADODB, forms;type TProcPool = class(TObject) private FObjList:TThreadList; FTimeout: Integer; FMaxCount: Integer; FSemaphore: Cardinal; function CreateNewInstance(List:TList): TADOStoredProc; function GetLock(List:TList;Index: Integer): Boolean 阅读全文
posted @ 2012-01-11 22:39 delphi中间件 阅读(671) 评论(0) 推荐(0)
摘要: unit DSPPool;interfaceuses Classes, Windows, SysUtils, Provider, forms;type TDSPPool = class(TObject) private FObjList:TThreadList; FTimeout: Integer; FMaxCount: Integer; FSemaphore: Cardinal; function CreateNewInstance(List:TList): TDatasetProvider; function GetLock(List:TList;Index: Integer): Bool 阅读全文
posted @ 2012-01-11 22:38 delphi中间件 阅读(1043) 评论(0) 推荐(0)
摘要: unit AdoqueryPool;interfaceuses Classes, Windows, SysUtils, ADODB, forms;type TADOQueryPool = class(TObject) private FObjList:TThreadList; FTimeout: Integer; FMaxCount: Integer; FSemaphore: Cardinal; function CreateNewInstance(List:TList): TADOQuery; function GetLock(List:TList;Index: Integer): Bool 阅读全文
posted @ 2012-01-11 22:37 delphi中间件 阅读(797) 评论(0) 推荐(0)
摘要: unit AdoconnectPool;interfaceuses Classes, Windows, SysUtils, ADODB, IniFiles, forms;type TADOConnectionPool = class(TObject) private FObjList:TThreadList; FTimeout: Integer; FMaxCount: Integer; FSemaphore: Cardinal; function CreateNewInstance(List:TList): TADOConnection; function GetLock(List:TList 阅读全文
posted @ 2012-01-11 22:35 delphi中间件 阅读(1708) 评论(1) 推荐(0)
摘要: unit AdoconnectPool;interfaceuses Classes, Windows, SyncObjs, SysUtils, ADODB;type TADOConnectionPool = class(TObject) private FObjList:TThreadList; FTimeout: Integer; FMaxCount: Integer; FSemaphore: Cardinal; FConnectionString: string; function CreateNewInstance(List:TList): TADOConnection; functio 阅读全文
posted @ 2011-10-14 22:02 delphi中间件 阅读(521) 评论(0) 推荐(0)
摘要: 首先要设SimpleObjectBroker的loadBalanced的属性为True,并保证所有的应用服器已向SimpleObjectBroker注册,当客户端应用程序查觉原来的应用服器出现故障后立刻调用TSimpleObjectBroker的SetConnectedStatus(False)通知TSimpleObjectBroker应用服务器发生故障,然后调用GetComputerForProgID要求TSimpleObjectBroker查找另外一台提供相同服务的应用程序服务器给客户端应用程序只要把XXXConnection的ObjectBroker属性设为某个SimpleObjectB 阅读全文
posted @ 2011-10-10 21:18 delphi中间件 阅读(969) 评论(0) 推荐(0)
摘要: function ParamsToVariant(Params: TParams; Macro, Compatible: Boolean): Variant;var I: Integer; Tmp: Variant;begin if (Params.Count = 0) then Result := Null else begin Result := VarArrayCreate([0, Params.Count - 1], varVariant); for I := 0 to Params.Count - 1 do with Params[I] do begin if Compatible 阅读全文
posted @ 2011-10-05 22:16 delphi中间件 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 152 153 154 155 156 157 158 159 160 ··· 204 下一页