2007年4月25日
摘要: Delphi试题51道1.dbExpress组件访问数据库是通过哪种方式与特定的数据库连接的?(C)A. BDEB.其他三项都不是C.DbExpress自己的数据库连接DLLD.ODBC2.在try语句中使用多个except语句可以处理多个不同的异常情况。(A)A.错误B.正确3.DWORD,UINT,HResult以及WinAPI函数中各种Handle等于Delphi6中的哪种数据类型?( A)... 阅读全文
posted @ 2007-04-25 16:33 左左右右 阅读(3430) 评论(0) 推荐(0) 编辑
摘要: 关键词语:message based, event driven, multitasking, multithreading, console programming消息基础, 事件驱动,多任务,多线程,控制台程序以消息为基础,以事件驱动之(message based, event driven)每一个Windows 程序都应该有一个回路如下:MSG msg;while (GetMessage(&... 阅读全文
posted @ 2007-04-25 13:12 左左右右 阅读(551) 评论(0) 推荐(0) 编辑
  2007年4月24日
摘要: VarArrayCreate functionCreates a variant array.function VarArrayCreate(const Bounds: array of Integer; VarType: TVarType): Variant; VarArrayOf functionCreates and fills a one-dimensional variant array... 阅读全文
posted @ 2007-04-24 17:32 左左右右 阅读(283) 评论(0) 推荐(0) 编辑
  2007年4月23日
摘要: 1、rtl70.bpl是什么?有什么用? 2、delphi的Package相对dll有什么优点? 3、以下的记录(结构)变量在内存占多少字节?: 36 type a = packed record v1: Byte; v2: Word; v3: string[16]; v4: Double; v5: string; v6:... 阅读全文
posted @ 2007-04-23 17:02 左左右右 阅读(734) 评论(0) 推荐(0) 编辑
摘要: http://www.delphifans.com/infoview/Article_835.html 阅读全文
posted @ 2007-04-23 13:24 左左右右 阅读(224) 评论(0) 推荐(0) 编辑
  2007年4月19日
摘要: create instance(object) should use new, or it will not call the constructor methodmalloc is used to malloc memory for pointer(structure, char, int and so on), not for class 阅读全文
posted @ 2007-04-19 09:31 左左右右 阅读(181) 评论(0) 推荐(0) 编辑
  2007年4月18日
摘要: 方法一:在窗体上点鼠标右键,选择菜单中的"View as Text", 找到你的Label,设置它的Caption属性为 '第一行字符串'#13'第二行字符串';设置完后按Alt+F12即可看到效果了。方法二:是WordWrap属性Label1.AutoSize:=False;Label1.WordWrap:=True;出自:http://bbs.2ccc.com/topic.asp?topici... 阅读全文
posted @ 2007-04-18 10:04 左左右右 阅读(761) 评论(0) 推荐(0) 编辑
  2007年4月17日
摘要: http://dev.csdn.net/Develop/article/42/42446.shtm http://www.blogjava.net/majianan/archive/2006/08/20/64664.html 阅读全文
posted @ 2007-04-17 14:37 左左右右 阅读(174) 评论(0) 推荐(0) 编辑
  2007年4月16日
摘要: 变体类型Variant,能够在运行期间动态的改变类型。变体类型能支持所有简单的数据类型,如整型、浮点、字符串、布尔型、日期时间、货币及OLE自动化对象等,不能够表达Object Pascal对象。1.VarArrayCreate functionCreates a variant array.创建一个变体类型的数组。function VarArrayCreate(const Bounds: ar... 阅读全文
posted @ 2007-04-16 12:56 左左右右 阅读(1214) 评论(0) 推荐(0) 编辑
  2007年4月13日
摘要: 在编写一个托盘程序中,往往需要创建、修改、移除托盘图标,从这里开始入手。 一、创建、修改、移除托盘图标,只需调用一个API函数,Shell_NotifyIcon(),这个函数向windows操作系统发送一个消息,要求windows执行添加、修改、删除某个任务栏状态区图标的操作。这个函数包含在ShellAPI单元中,定义: function Shell_NotifyIcon(dwMessage: ... 阅读全文
posted @ 2007-04-13 21:44 左左右右 阅读(549) 评论(0) 推荐(0) 编辑