05 2012 档案

摘要:1 常见数据类型 的内存结构 整数 integer 四个字节 在 32为操作系统 尽量要用这个,因为这个会使 CPU最快。 字符 char 应该是一个字节 Char是单个字符; PChar 就是指向一个以Null 结尾的每个字符为一个字节的字符串的指针。 (可以看成是一个字符串) String是字符数组,以字符#0结尾; Char只占一字节的空间,而Pch... 阅读全文
posted @ 2012-05-21 18:39 谷雨· 阅读(1486) 评论(0) 推荐(0) 编辑
摘要:var iFindRec, iParentRec: IGSPRecord;begin Result := -1; iFindRec := FSection.FindByID(ASectionID); if not Assigned(iFindRec) then Exit; iParentRec := iFindRec.FindField(pfnPID).MasterRecord; while iParentRec <> nil do begin iFindRec := iParentRec; iParentRec := iFindRec.FindField(pfnP... 阅读全文
posted @ 2012-05-21 18:04 谷雨· 阅读(154) 评论(0) 推荐(0) 编辑
摘要:开发步骤: 1、New->Other->Service Application 2、现在一个服务程序的框架已经搭起来了,打开Service1窗口,有几个属性说明一下: AllowPause:是否允许暂停 AllowStop: 是否允许停止 Dependencies: 设置服务的依存关系,服务的启动是否依赖于某个服务或者组 DisplayName: 在“... 阅读全文
posted @ 2012-05-21 18:02 谷雨· 阅读(852) 评论(0) 推荐(0) 编辑