2009年12月17日 星期四
获取硬盘、CPU序列号
小城太阳| 网络天空vistra-Delphi |22:34:00
获取CPU序列号:调用方式如:edit1.Text := GetCPUIDStr;type TCPUID = array[1..4] of Longint;FUNCTION GetCPUID : TCPUID; assembler; register;asm PUSH EBX &nbs...
GdiPlus[37]: IGPGraphicsPath (四) 路径变换
万一| 万一的 Delphi 博客 |20:46:00
阅读: 83 评论: 0 作者:万一发表于 2009-12-17 20:46原文链接IGPGraphicsPath.Flatten(); //把路径中的曲线转换为近似直线段(路径中只有 Bezier 线和直线). IGPGraphicsPath.Outline(); //同 Flatten(); IGPGraphicsPath.Warp(); //四边形或平行四边形?..
获取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...





冀公网安备 13098202000212号