论坛


2009年12月17日 星期四

获取MAC地址

小城太阳| 网络天空vistra-Delphi |17:28:00

uses WinSock;Function sendarp(ipaddr:ulong;temp:dword;ulmacaddr:pointer;ulmacaddrleng:pointer) : DWord; StdCall; External 'Iphlpapi.dll' Name 'SendARP';function GetMacString(sDescIP:String):String;varmyip:ulong;mymac:array[0..5] of byte;mymaclengt...

GdiPlus[36]: IGPGraphicsPath (三) 路径中的数据

万一| 万一的 Delphi 博客 |16:40:00

  阅读: 16 评论: 0 作者:万一发表于 2009-12-17 16:40原文链接IGPGraphicsPath.PointCount; // 点总数 IGPGraphicsPath.PathPoints; // 点数组, 浮点型 IGPGraphicsPath.PathPointsI; // 点数组, 整型 IGPGraphicsPath.PathTypes; // 点类型数组 IGPGraph...

GdiPlus[35]: IGPGraphicsPath (二) 命中测试

万一| 万一的 Delphi 博客 |14:21:00

  阅读: 23 评论: 0 作者:万一发表于 2009-12-17 14:21原文链接IGPGraphicsPath.IsVisible //指定点是否在路径内 IGPGraphicsPath.IsOutlineVisible //指定点是否在路径轮廓上本例测试图:本例代码:unit Unit1; interface uses Windows, Messages, SysUt...

GdiPlus[34]: IGPGraphicsPath (一)

万一| 万一的 Delphi 博客 |13:53:00

  阅读: 26 评论: 0 作者:万一发表于 2009-12-17 13:53原文链接路径是一组图形命令, 它能容纳所有基本图形和文本、子路径:IGPGraphicsPath.AddLine(); IGPGraphicsPath.AddLines(); IGPGraphicsPath.AddArc(); IGPGraphicsPath.AddBezier(); IGPGraphicsPath.AddBe...

Random Thoughts on the Passing Scene #138

Nick Hodges| Nick Hodges |09:56:37

When we told Microsoft about Delphi Prism, they were really excited at what we were doing with the VS Shell.  So excited, in fact, that they did a complete Case Study on it.  And I even get a nice quote on the side. Be sure to read Chr...

Delphi2010中DataSnap高级技术(5)—建立稳定服务程序之TCP心跳包的使用

sunstone| SUNSTONE的Delphi笔记 |02:33:00

为了能让我们的服务程序更加稳定,有些细节问题必须解决。就如上一讲中提到的客户端拔掉网线,造成服务器上TCP变成死连接,如果死连接数量过多,对服务器能长期稳定运行是一个巨大的威胁。另外,经过测试,如果服务器上有TCP死连接,那么服务程序连接数据库,也会产?..

Implementing "Cancel All Edits" for a Configuration-type Form in Delphi

About.com| About.com Delphi Programming |02:00:43

in Delphi VCL::Configuration forms often have a cancel button used to revert any edits to the edit controls back to original (initial) values. Here's how to implement such a mechanism in Delphi applications.Read thefull articleto learn how toImple...

2009年12月16日 星期三

GdiPlus[33]: 基本绘图与填充命令

万一| 万一的 Delphi 博客 |21:31:00

  阅读: 91 评论: 2 作者:万一发表于 2009-12-16 21:31原文链接DrawLine(); DrawLines(); DrawArc(); DrawBezier(); DrawBeziers(); DrawRectangle(); DrawRectangles(); DrawEllipse(); DrawPie(); DrawPolygon(); DrawCurve(); DrawClosedCurve(); FillRectangl...

DebugHook 与 ReportMemoryLeaksOnShutdown

万一| 万一的 Delphi 博客 |15:46:00

  阅读: 30 评论: 0 作者:万一发表于 2009-12-16 15:46原文链接DebugHook 与 ReportMemoryLeaksOnShutdown 都是 System 下的变量.DebugHook: 程序中母体中运行时, 此值是 1; 独立运行时, 它是 0.在程序的任何地方加上一句 ReportMemoryLeaksOnShutdown := True;这?..

GdiPlus[32]: IGPPen: LineJoin、MiterLimit

万一| 万一的 Delphi 博客 |15:35:00

  阅读: 27 评论: 0 作者:万一发表于 2009-12-16 15:35原文链接LineJoin 测试效果图:LineJoin 测试代码:uses GdiPlus; procedure TForm1.FormPaint(Sender: TObject); const Pts: array[0..2] of TGPPoint = ((X:90;Y:80), (X:240;Y:30), (X:240;Y:80)); var ...

GdiPlus[31]: IGPPen: 自定义线帽

万一| 万一的 Delphi 博客 |15:14:00

  阅读: 24 评论: 0 作者:万一发表于 2009-12-16 15:14原文链接自定义线帽可以通过两个接口: IGPCustomLineCap、IGPAdjustableArrowCap.后者继承与前者, 专用于修改箭头线帽.IGPAdjustableArrowCap 测试效果图:IGPAdjustableArrowCap 测试代码:uses GdiPlus; proc...

Habari OpenMQ Client 1.3b2 - for Open Message Queue / GlassFish™

CodeGear| CodeGear-CodeCentral Delphi |12:39:39

Habari OpenMQ Client is a library which provides easy access to the Open Message Queue Message Broker. It supports Delphi 6 to 2010 and Free Pascal and follows the JMS API specification for Message Oriented Middleware. Now your applications can ex...

Delphi 2010 Install from the Web

CodeGear| CodeGear-CodeCentral Delphi |12:35:49

Use to install any edition of Delphi 2010English, French, German and JapaneseDecember 2009 release - includes Updates 1-5 and Help Update 1.To install: - Click the download button to download the installer .zip file - Unzip the installer .zip file...

GdiPlus[30]: IGPPen: 线帽

万一| 万一的 Delphi 博客 |12:21:00

  阅读: 38 评论: 0 作者:万一发表于 2009-12-16 12:21原文链接StartCap 和 EndCap 属性分别用来读写两段的线帽, 测试图:StartCap 和 EndCap 测试代码:uses GdiPlus; procedure TForm1.FormPaint(Sender: TObject); const CapArr: array[0..8] of Byte = (0, 1,...

GdiPlus[29]: IGPPen: 虚线样式

万一| 万一的 Delphi 博客 |00:56:00

  阅读: 60 评论: 0 作者:万一发表于 2009-12-16 00:56原文链接通过画笔的 DashStyle 属性可设置或读取虚线样式.通过 SetDashPattern 方法或 DashPattern 属性可自定义虚线样式.通过 DashPattern 属性还可以读出已有样式定义时的数组.自定义虚线样式样式时, 需要元...

« 上一页

下一页 »