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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:什么是流?流,简单来说就是建立在面向对象基础上的一种抽象的处理数据的工具。在流中,定义了一些处理数据的基本操作,如读取数据,写入数据等,程序员是对流进行所有操作的,而不用关心流的另一头数据的真正流向。流不但可以处理文件,还可以处理动态内存、网络数据等多种数据形式。如果你对流的操作非常熟练,在程序中利用流的方便性,写起程序会大大提高效率的。 下面,笔者通过四个实例:EXE文件加密器、电子贺卡、自制...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文