
Misc
文章平均质量分 78
iseekcode
Delphi票友
展开
-
How to store an Object into an integer?
How to store an Object into an integer?Sometimes you want to use your beloved, worldclass component, but it has no room for saving data anywhere. But to build a connection to that data you need is m转载 2009-10-31 13:56:00 · 512 阅读 · 0 评论 -
Print any type of document using Delphi
Print any type of document using Delphi 1.Drop a TComboBox on a form. Name it "cboPrinter". Set Style to csDropDownList. 2.Put the next two lines in the forms OnCreate event handler. // have av转载 2009-11-17 12:55:00 · 554 阅读 · 0 评论 -
How can I play a wav-file from memory or BLOB-field?
How can I play a wav-file from memory or BLOB-field? Sometimes you needs to play a some sounds from own app but store these sounds in BLOB-field of table or in some external files.To play a wav-file转载 2009-11-22 22:15:00 · 566 阅读 · 0 评论 -
Select folder dialog
Select folder dialogYesterday I posted how to display standard dialog for files (open/save). Today I want to show how you may use stamndard dialog when user must select a folder/directory.转载 2009-11-22 21:28:00 · 2490 阅读 · 0 评论 -
谁说Delphi没有哈希
谁说Delphi没有哈希?--Delphi中,TStringList和THashedStringList的性能对比曾经看到很多人在嚷嚷Delphi没有哈希表,这些人的动手意识姑且不论,却还有很多人以此来证明Delphi比别的语言垃圾,实在是...好,牢骚打住,转接正题。TStringList是我们常用的字符串列表类型,用法就不在这里赘述,但是,在数据其项数增多时,其搜索(主要是name/k转载 2009-11-23 20:55:00 · 1010 阅读 · 0 评论 -
对TMemoryStream的一些改进
对TMemoryStream的一些改进怎么又是关于Stream的,呵呵,应该说只是最近比较关心程序的效率问题,而我对Stream其实并没有什么特别的研究,只是自己发现了一些新的用法,希望能对大家有用而已。 事情的起因还是那个破烂电子相册软件,今天又发现了一个可改进之处,有一段程序我原来是这么写的: procedure CreateFile(const AFileName:String;转载 2009-11-30 15:40:00 · 749 阅读 · 0 评论 -
How do I use IStream?
IStream is a Win32 interface, accessable to alot of programing languages, but is not well documented for Delphi. How do I use IStream? There are alot of articles here and elsewhere showing how to c转载 2009-12-25 21:24:00 · 960 阅读 · 0 评论