04 2011 档案

摘要:On systems based on the IA-32 architecture, the FPU control word includes bits that control the FPU's precision, rounding mode, and whether exceptions generate signals if they occur, if you want to k... 阅读全文
posted @ 2011-04-21 01:27 潺缘 阅读(907) 评论(0) 推荐(0)
摘要:初在Delphi里进行处理错误时,最常用的做法是try….except ….end. 例如:try raise Exception.Create('Error Message'); except on e:Exception do begin ShowMessage(e.Message); end; end;而现在要说的是另外的一种做法:var ExceptionObj : TObject;beg... 阅读全文
posted @ 2011-04-15 23:14 潺缘 阅读(1854) 评论(0) 推荐(0)
摘要:本文转自:http://www.neugls.info/?p=97JVCLThe JEDI Visual Component Library (JVCL) consists of a large collection (currently ca 500) visual and non-visual components which can be instantly reused in your Delphi, Kylix and C++ Builder projects. You can visit this website to know more about JVCL: http://jv 阅读全文
posted @ 2011-04-06 00:42 潺缘 阅读(9419) 评论(0) 推荐(0)
摘要:问题是这样的。在我的程序中,我用json存放用户的设置,保存到文件中。当我的程序版本升级时,我往用户的设置中增加了新的Fields。当我从用户的机器中读取老版本的设置时,会出现错误。我的读取与写入代码如下:procedure ReadFromStream<T>(Stream: TStream; var O: T);var CTX:TSuperRttiContext; Size:Cardinal; ... 阅读全文
posted @ 2011-04-05 16:43 潺缘 阅读(1756) 评论(1) 推荐(0)
摘要:最近,Delphi推出了64位预览版本, 我做为一个忠实的Delphier, 看到这消息后,第一时间学习,并写下这个做为以后的参考资料。 相同点: 在Delphi 64位版本中,UnicodeString,AnsiString,WideString在使用上与32没有区别,只是索引变成了64位,如:S[I]中的I变成了64位。 Singed typesDelphi/32Delphi/64ShortInt1 bytes←SmallInt2 bytes←LongInt4 bytes←Integer4 bytes←Int648 bytes←Unsinged typesDelphi/32Delphi/. 阅读全文
posted @ 2011-04-05 12:53 潺缘 阅读(6200) 评论(3) 推荐(1)