摘要: .net类库的原因。C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG下面的machine.config.default 改名为machine.config 阅读全文
posted @ 2012-02-12 07:42 delphi中间件 阅读(814) 评论(4) 推荐(0)
摘要: //author: cxg//sql工厂unit MySQL;interfaceuses SysUtils, SqlExpr, DBClient, db, DBXCommon,Provider;type TMySQL = class(TObject) private fSqlcommand: string; fQry: TClientDataSet; fSqlMethod: TSqlServerMethod; fSqlConnection: TSQLConnection; fDbxTrans: TDBXTransaction; fP:TDataSetProvider; fD:TClientDa 阅读全文
posted @ 2012-02-12 07:18 delphi中间件 阅读(1185) 评论(0) 推荐(0)
摘要: xe datasnap自动支持TParams对象的序列,无需我们手动序列,真的很方便。远程方法定义示例:function TServerMethods1.GetData(sql: string; params: TParams): TDataSet;begin cds.Close; cds.CommandText := ''; cds.CommandText := sql; cds.Params.Clear; cds.Params := params; cds.Open; Result := cds;end;客户端远程调用示例:function TMySQL.GetData: 阅读全文
posted @ 2012-02-12 07:16 delphi中间件 阅读(981) 评论(1) 推荐(0)
摘要: //author: cxgunit DSServerContainer;interfaceuses SysUtils, Classes, IniFiles, Windows, Provider, DBClient, DSTCPServerTransport, DSServer, DSCommonServer, DB, ADODB, Generics.Collections, DSService, DBXDataSnap, DBXCommon, DSHTTPLayer, DBXinterbase, forms, DbxCompressionFilter ,IdTCPConnection ,IdW 阅读全文
posted @ 2012-02-12 07:09 delphi中间件 阅读(2147) 评论(3) 推荐(0)