12 2006 档案

摘要:Article submitted by Dirk Claessens, text co-authored by Zarko Gajic. What is a stream? TStream? A stream is what its name suggests: a flowing "river of data". A stream has a beginning, an end, and y... 阅读全文
posted @ 2006-12-24 18:56 hingman 阅读(189) 评论(0) 推荐(0)
摘要:There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files wi... 阅读全文
posted @ 2006-12-24 18:52 hingman 阅读(162) 评论(0) 推荐(0)
摘要:How to register (and unregister) OLE controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files from a Delphi application. One of the features that make Delphi so popular is that whe... 阅读全文
posted @ 2006-12-22 13:26 hingman 阅读(581) 评论(0) 推荐(0)
摘要:什么是流?流,简单来说就是建立在面向对象基础上的一种抽象的处理数据的工具。在流中,定义了一些处理数据的基本操作,如读取数据,写入数据等,程序员是对流进行所有操作的,而不用关心流的另一头数据的真正流向。流不但可以处理文件,还可以处理动态内存、网络数据等多种数据形式。如果你对流的操作非常熟练,在程序中利用流的方便性,写起程序会大大提高效率的。 下面,笔者通过四个实例:EXE文件加密器、电子贺卡、自制... 阅读全文
posted @ 2006-12-19 17:20 hingman 阅读(226) 评论(0) 推荐(0)
摘要:Most of the file types (files "grouped" by their extension) in Windows have an associated application which gets executed when a user double clicks a file in the Windows Explorer. As expected, you ca... 阅读全文
posted @ 2006-12-19 10:15 hingman 阅读(343) 评论(0) 推荐(0)
摘要:Here's how to use a TTF (true type font) in your Delphi application without having to install it in Windows: In the OnCreate event for the main form in your Delphi application call the AddFontRes... 阅读全文
posted @ 2006-12-18 12:40 hingman 阅读(351) 评论(0) 推荐(0)
摘要:Here's how to get the Windows version from Delphi code: type TWinVersion = (wvUnknown, wvWin95, wvWin98, wvWin98SE, wvWinNT, wvWinME, wvWin2000, wvWinXP, wvWinVista) ; ... function GetWinVersion: TWi... 阅读全文
posted @ 2006-12-15 18:26 hingman 阅读(582) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示