2011年1月5日 星期三
学用 ASP.Net 之 System.Collections.Queue 与 Stack 类
万一| 万一的 Delphi 博客 |16:31:00
Queue(队列)是先进先出的集合; Stack(堆栈)是后进先出的集合.Queue 的主要成员:/* 属性 */ Count; //元素数 /* 方法 */ Clear(); //清空 Contains(); //是否包含 Dequeue(); //出列 Enqueue(); //入列 Peek(); //获取将要出列的Stack 的主要成员:/* ?..
学用 ASP.Net 之 System.Collections.BitArray 类
万一| 万一的 Delphi 博客 |16:19:00
常用成员:/* 属性 */ Count; //只读 Length; //同 Count, 但可读写 /* 方法 */ And(); //与 Get(); //取值 Not(); //取反 Or(); //或 Set(); //赋值 SetAll(); //全部设定为指定值 Xor(); //异或练习://(items)[]、Get()、Set() protected ...
Delphi Labs: DataSnap XE - Simple Calculator Service
Embarcadero| EDN Delphi Feed |05:26:17
Debugging multithreaded applications
Embarcadero| EDN Delphi Feed |04:22:57
学用 ASP.Net 之 System.Collections.Hashtable 类与 DictionaryEntry 结构
万一| 万一的 Delphi 博客 |00:19:00
DictionaryEntry 是包含 Key / Value 一对值的简单结构;Hashtable(哈希表)是一组 Key / Value 的集合, 准确地讲是一组 DictionaryEntry 的集合.DictionaryEntry 简例:protected void Button1_Click(object sender, EventArgs e) { DictionaryEntry d1; d1.Ke...
2011年1月4日 星期二
Delphi XE的RTTI增强,动态Hook某些内部事件
不得闲| 得闲笔记 |22:50:00
Delphi2010之后的RTTI做了很大休整,现在用起来很爽了哦。甚至可以获取某些类的内部私有单元,然后为其赋值!讲这个RTTI增强的,可以参考网上的多个博客内容,我列举一下:Delphi2010RTTI的增强Delphi的Anymouse方法探秘万一的Rtti系列我这里的主要目的是挂钩某些内?..
学用 ASP.Net 之 System.TimeSpan 结构
万一| 万一的 Delphi 博客 |14:13:00
TimeSpan 表示一个时间间隔, 如:protected void Button1_Click(object sender, EventArgs e) { DateTime dt1 = new DateTime(2010, 1, 2, 3, 4, 5); DateTime dt2 = new DateTime(2011, 6, 6, 6, 6, 6); TimeSpan ts = dt2 - dt1; TextBox1.Text =...
Get The Name Of The Windows OS Installed on a Machine
About.com| About.com Delphi Programming |05:05:26
inOLE Examples:: Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows-based operating systems. You can use Delphi to communicate with WMI by using ...Read Full Post
2011年1月3日 星期一
学用 ASP.Net 之 System.DateTime 结构
万一| 万一的 Delphi 博客 |21:07:00
成员:/* 字段 */ DateTime.MaxValue; //9999/12/31 23:59:59 DateTime.MinValue; //0001/01/01 00:00:00 /* 静态属性 */ DateTime.Now; //当前日期和时间 DateTime.Today; //当前日期 DateTime.UtcNow; //当前日期和时间(UTC) /* 静态方法 */ DateTime.Compare...
学用 ASP.Net 之 System.Math 类
万一| 万一的 Delphi 博客 |14:58:00
成员:/* 常量字段 */ Math.E; //2.71828182845905 Math.PI; //3.14159265358979 /* 静态方法 */ Math.Abs; //绝对值 Math.Acos; //反余弦 Math.Asin; //反正弦 Math.Atan; //反正切 Math.Atan2; ...
学用 ASP.Net 之 System.Random 类
万一| 万一的 Delphi 博客 |10:49:00
成员:Next(); //获取 0 .. int.MaxValue 的 int 随机数; 可指定范围 NextBytes(); //获取 0 .. 255 的随机数并填充字节数组 NextDouble(); //获取 0 .. 1 的 double 随机数构造函数://不指定随机种子, 则默认有系统时钟生成种子 protected void Button1_Click...
Delphi Labs: DataSnap XE - Simple Calculator Service
Embarcadero| CodeCentral Delphi Submissions |07:01:38
This is the source code for the EDN article "Delphi Labs: DataSnap XE - Simple Calculator Service".We are using Delphi XE to build simple calculator service for performing basic arithmetic operations like add, subtract, multiply ...
Add a Standard Context (popup) Menu to Delphi’s TRichEdit
About.com| About.com Delphi Programming |02:00:49
inTRichEdit::Delphi's implementation of the rich editor control (TRichEdit) does *not* expose the default context popup menu when the rich edit is right-clicked.Read thefull articleto learn how toImplement Add a Standard Context (popup) Menu to De...
2011年1月2日 星期日
Using Extended RTTI to Make your Life Easier
Embarcadero| EDN Delphi Feed |22:00:00
学用 ASP.Net 之 "字符串" (6): StringInfo 类
万一| 万一的 Delphi 博客 |21:54:00
学完这个类没感到它会有什么用处, 同样的操作都不如在 string 类里方便, 还要 using System.Globalization;主要成员:/* 静态方法 */ StringInfo.GetNextTextElement(); //获取指定元素, 默认是获取第一个元素 StringInfo.GetTextElementEnumerator(); //获取枚...





冀公网安备 13098202000212号