摘要: 作者:Shilf来源:博客园发布时间:2011-09-10 01:16阅读:213 次原文链接 [收藏] Delphi XE (2011) + 7 + PostgreSQL 9.0 ZeosLib Today I installed the newly released Embarcadero RAD Studio XE and I liked what it found.We also intend to write some notes about this release in the coming days. Some time ago I wrote a little s... 阅读全文
posted @ 2011-11-25 16:22 马儿快跑 阅读(2341) 评论(2) 推荐(0) 编辑
摘要: function WCharToChar(WString: PWideChar): string;var Len, dwMinSize: Integer; lpUsedDefaultChar: BOOL;begin Result := ''; lpUsedDefaultChar := False; len := lstrlenW(WString) * 2 + 1; SetLength(Result, Len); dwMinSize := WideCharToMultiByte(CP_OEMCP, 0, WString, -1, nil, 0, nil, @lpUsedDefau 阅读全文
posted @ 2011-11-25 16:10 马儿快跑 阅读(1901) 评论(0) 推荐(0) 编辑
摘要: Delphi 的字符及字符串[2] - Char、AnsiChar、WideChar、PChar、PAnsiChar、PWideChar //单字符 Char、AnsiChar (在目前版本(2007)中, 它们是一回事, 只有 1 字节大小) var c: Char; {Char 类型的取值范围是: #0..#255, 用十六进制表示是: #$0..#$FF} begin {用十进制方式赋值:} c := #65; ShowMessage(c); {A} {用十六进制方式赋值:} c := #$41; ShowMessage(c); {A} {用 Chr 函数... 阅读全文
posted @ 2011-11-25 15:45 马儿快跑 阅读(540) 评论(0) 推荐(0) 编辑