自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 Delphi中支持Unicode的TStrings类

 unit WideStrings;interfaceuses classes,SysUtils;type  TWString = record    WString: WideString;  end;  TWideStrings = class  private    FWideStringList: TList;    function Get(Index: Intege

2007-08-27 22:33:00 1951

原创 Oracle字符集相关

 查询服务器的字符集设置:select * from nls_database_parametersWindows客户端字符集设置://key_local_machine/software/oracle/homeo/nls_lang    该键值下可设置以下值         AMERICAN_AMERICA.US7ASCII         AMERICAN_AMERICA.

2007-08-23 09:15:00 757

原创 用Oracle自定义聚合函数实现字符串连接的聚合

create or replace type string_sum_obj as object (--聚合函数的实质就是一个对象    sum_string varchar2(4000),    static function ODCIAggregateInitialize(v_self in out string_sum_obj) return number,    --对象初始化

2007-07-31 16:38:00 2028

原创 利用Delphi中的TxmlDocument生成xml文件应注意的问题

直接进入代码吧,红字都是注意的地方var  xml:TXmlDocument;  xmlNode:IxmlNode;begin    xml:=TXmlDocument.Create(nil);    try        xml.Active:=True;        xml.Version:=1.0;        xml.Encoding:=UTF-8;        xml.

2007-07-30 16:51:00 1615

原创 有关Delphi编译优化的问题

Delphi编译器(在编译文件时)能自动去掉死代码(在打开编译优化功能时).这个非常不错的功能,能够帮助程序员更有效的检查程序.但有时就时这个功能,也可能给程序带来不必要的小Bug.请看以下程序:function PosChar2(ch:Char;chArray:Array of Char):Integer;var  i:Integer;begin    i:=0;  //这一句不会被编译  

2007-07-02 13:13:00 1788

原创 在Delphi中读Unicode文件文件

type  UnicodeTextRead=Class  private    UnicodeText:TFileStream;    FLineStart: Int64;    FEof: Boolean;    procedure SetLineStart(const Value: Int64);  protected    property LineStart:Int64 Read FL

2007-06-27 23:40:00 1321

原创 在Delphi7中RaveReport的使用

        近段时间用Delphi7的RaveReport控件做票据打程序, 遇到不少问题. 幸好在网上得到得一些前辈(有意或无意)的帮助.得到不少心得. 在此表示感谢! 同时也将自己的所得拿出来与大家一起分享.unit UReportClass;interfaceuses   Windows,classes,Forms,UGlobalSet,RpRave,RvClass,RvCS

2007-05-16 22:35:00 3211

原创 SD卡+读卡器做USB启动盘

我想用一张闲置32M SanDsik SD卡+读卡器做一个usb启动盘。昨晚用usboot 1.68 试了两个小时,一直搞不定。(主板是技嘉865)今天用陈年Win98安装盘启动电脑,用pqMagic(用fdisk分区也有问题)对SD卡重新分区格式化(Fat16),用sys命令将系统传送到SD卡。重启,在Bios中设置启动顺序,将generic USB HDD放在第一位。ok

2007-05-07 22:12:00 4555

原创 在C#中的一个死循环

class loopcls{ public static int loopVar  {  get  {   return loopVar;  }  set  {   loopVar=value;  } } static int Main() {  //死循环喔  return loopVar; }}

2007-04-26 22:40:00 1639

原创 不知道是不是VS.NET 2003的bug

#include __interface INew//Microsoft Visual Studio .NET 2003开发文档中规定 interface Can only contain public, pure virtual methods.{ void MsgHelloWorld(); //不知道什么原因,这理却可以写函数的实现代码。 {  MessageBox(NULL,"Hello

2007-04-09 19:48:00 928

原创 排序

typedef int DataType;templateclass Sort{private: static int Partition(T argData[],int sp,int ep); //快速排序中调用寻找分治点 static void shellInsert(T argData[],int dk,long DataLen);  //希尔排序中调用增量为dk插入排序 stati

2007-04-08 20:59:00 753

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除