posted @ 2012-06-21 10:24 对镜弹箜篌 阅读(222) 评论(0) 推荐(0)
摘要:
在Delphi中调试COM+ 由于COM+是执行在COM+的执行环境中,因此Delphi 的程序员无法像Delphi的分布式多层应用系统一样可以直接在 Delphi 的IDE 中设定应用程序服务器的断点来调试。 事实上, Delphi 仍然可以在 Delphi 的集成开发环境中调试 COM+组件,也可以让程序员在集成开发环境中在COM+组件的程序单元中设定断点,然后执行客户端应用程序调用 COM+组件。此时 Delphi 便会把执行控制权带到Delphi 的集成开发环境中,并且暂停在程序员设定的断点上让程序员开始调试。从此开始,程序员就可以像调试一般的应用程序一样来调COM+组件了。不过要如此 阅读全文
摘要:
算是一种减少单元之间的引用的方法类似委托View Code 1 unit Unit5; 2 3 interface 4 5 uses System.Classes, System.SysUtils, Vcl.Dialogs; 6 7 type 8 // 声明过程类型 9 TObjFuns = procedure(const str1, str2: string) of object;10 11 IFormattedNumber = interface12 ['{19AE4E57-A022-45B1-AA42-43FF5142D685}']13 functio... 阅读全文
posted @ 2012-05-16 14:00 对镜弹箜篌 阅读(503) 评论(0) 推荐(0)
摘要:
ORACLE9i 转换请求无法实现或不合理装了ORACLE9I,但是在使用PLSQL DEVELOPER时,每次CREATE TABLE时,都提示:ORA-01460: 转换请求无法实现或不合理最后发现原因是:ORACLE服务端数据库的字符集和客户端的字符集不同造成的。安装数据库时选择的字符集为AL32UTF8,也可在数据库中查看服务端字符集:select value from NLS_DATABASE_PARAMETERS where lower(parameter)='nls_characterset';或:select userenv('language' 阅读全文
posted @ 2012-04-27 12:49 对镜弹箜篌 阅读(522) 评论(0) 推荐(0)
摘要:
procedure TForm4.frxReport1BeforePrint(Sender: TfrxReportComponent);var obj: TObject;begin obj := Sender.FindObject('Picture1'); if obj <> nil then TfrxPictureView(obj).Picture.Assign(img1.Picture);end;procedure TForm4.frxReport1GetValue(const VarName: string; var Value: Variant);begin 阅读全文
posted @ 2012-04-25 15:53 对镜弹箜篌 阅读(720) 评论(0) 推荐(0)
摘要:
声明:本类来自cxGrid中的一个demoView Code unit RecStyle;interfaceuses Controls, Classes, Messages, Types;type TMycxDraw = class(TWinControl) private FAPoint: Tpoint; procedure SetAPoint(const Value: Tpoint); protected procedure AdjustFrameRgn; procedure Resize; override; public constructor ... 阅读全文
posted @ 2011-11-14 17:08 对镜弹箜篌 阅读(357) 评论(0) 推荐(0)
摘要:
原文标题:How to use transparent PNG icons with Delphi ImageList原文:http://www.aha-soft.com/faq/delphi-imagelist-png.htmQuery: "Embarcadero Delphi ImageList does not show transparent PNG icons correctly. How to fix it?".Solution: If you want to use 32-bit (24-bit + alpha channel) PNG icons withi 阅读全文
posted @ 2011-08-05 09:28 对镜弹箜篌 阅读(348) 评论(0) 推荐(0)
摘要:
动态创建cxGrid列,其中CheckBox未绑定数据集 阅读全文
posted @ 2011-07-19 19:04 对镜弹箜篌 阅读(969) 评论(0) 推荐(0)
摘要:
ID类别父类别1A02B03C04AA15BB26CC3添加到TreeView中:1type2PpgInfo=^TpgInfo;34TpgInfo=record5aName:string;6aID:string;7aPID:string;8end;910//addtotv11procedureTForm2.add2tv(al:TList<TpgInfo>);12var13paRec:PpgInfo;14i:Integer;15find:Boolean;16begin17whileal.Count>0do18begin1920ifal[0].aPID='0'th 阅读全文
posted @ 2011-07-14 00:27 对镜弹箜篌 阅读(1117) 评论(0) 推荐(0)
摘要:
执行:D:\PostgreSQL\9.0\share\contrib\uuid-ossp.sql报错:錯誤: 無法載入程式庫"D:/PostgreSQL/lib/uuid-ossp.dll":This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.SQL 状态: 58P01安装VC++2005运行时库 解决问题! 阅读全文
posted @ 2011-07-09 14:03 对镜弹箜篌 阅读(328) 评论(0) 推荐(0)