上一页 1 ··· 7 8 9 10 11

2013年2月17日

FastMM使用详解

摘要: FastMM使用详解一、引言 FastMM是适用于delphi的第三方内存管理器,在国外已经是大名鼎鼎,在国内也有许多人在使用或者希望使用,就连Borland也在delphi2007抛弃了自己原有的饱受指责的内存管理器,改用FastMM. 但是,内存管理的复杂性以及缺乏FastMM中文文档导致国内许多人在使用时遇到了许多问题,一些人因此而放弃了使用,我在最近的一个项目中使用了FastMM,也因此遇到了许多问题,经过摸索和研究,终于解决了这些问题。二、为什么要用FastMM第一个原因是FastMM的性能接近与delphi缺省内存管理器的两倍,可以做一个简单的测试,运行下面的代码:varI:... 阅读全文

posted @ 2013-02-17 13:12 neights 阅读(230) 评论(0) 推荐(0) 编辑

2013年2月16日

ashx文件的使用(转)

摘要: 一提到Ashx文件,我们就会想到http handler以及图片加载(在之前我们一般使用ASPX或者Webservice去做),一般做法如下:Handler.ashx:<%@ WebHandler Language="C#" class="Handler" %>using System;using System.IO;using System.Web;public class Handler : IHttpHandler {public bool IsReusable {get { return true;}}public void Proc 阅读全文

posted @ 2013-02-16 13:13 neights 阅读(503) 评论(1) 推荐(0) 编辑

delphi与sqlite3

摘要: delphi与sqlitefile:0 前言 本文的目的在于采用流水账方式来记录学习delphi访问嵌入式数据库sqlite中的一些点滴。欢迎各位同好共同学习和批评指正。file:1 准备工作part1 delphi版本:delphi2007 for win32 update3。任意安装版本即可。sqlite dll版本:3.5.3。目前最新版本的sqlite引擎。[ http://www.sqlite.org/ ]sqlite for delphi:simple sqlite 3.0 for delphi。目前的最新版本的发布日期为Update 16 October 2008,支持s... 阅读全文

posted @ 2013-02-16 09:31 neights 阅读(288) 评论(0) 推荐(0) 编辑

2013年2月8日

Delphi数据类型转换

摘要: DateTimeToFileDate 函数 将DELPHI的日期格式转换为DOS的日期格式 DateTimeToStr 函数 将日期时间格式转换为字符串 DateTimeToString 函数 将日期时间格式转换为字符串 DateToStr 函数 将日期格式转换为字符串 FileDateToDateTime 函数 将DOS的日期格式转换为DELPHI的日期格式 FloatToDecimal 函数 将浮点数转换为十进制数 FloatToStrF 函数 将浮点数转换为字符串 FloatToStr 函数 ... 阅读全文

posted @ 2013-02-08 09:04 neights 阅读(185) 评论(0) 推荐(0) 编辑

delphi获取其他外部程序中TDBGridEh控件中的数据

摘要: 使用钩子原理+dll注入。首先使用FindwindowEx能获取到表格的句柄,再转化为表格,将表格的内容赋值给你的新表格。function MsgWndProc(hwnd: HWND; Msg: UINT; WParam: WPARAM; LParam: LPARAM): LRESULT; stdcall;var // SG: TStringGrid; SG:TDrawgrid; X, Y: Integer;begin case Msg of CM_QUERYROW: begin Result := -1; if P^.DestWnd <> 0... 阅读全文

posted @ 2013-02-08 09:02 neights 阅读(1732) 评论(0) 推荐(0) 编辑

Delphi-ADOQuery连接数据库的查询、插入、删除、修改

摘要: //查询记录procedure TForm1.Button1Click(Sender: TObject);beginADOQuery.Close;ADOQuery.SQL.Clear;ADOQuery.SQL.Add('select * from YourTABLE where 查询条件');ADOQuery.Open;//插入记录procedure TForm1.Button2Click(Sender: TObject);beginADOQuery.Close;ADOQuery.SQL.Clear;ADOQuery.SQL.Text:='insert into You 阅读全文

posted @ 2013-02-08 08:59 neights 阅读(208) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11

导航