虽然东西都是现成的。但是也要脑子里有个概念。// 地区与语言GetACP 取得 ANSI code page,法语XP+设置中文内核 = 936 // ShowMessage(IntToStr(GetACP));GetThreadLocale 法语XP+设置中文内核 = 2052,纯法语 103... Read More
posted @ 2013-11-30 18:36 findumars Views(2508) Comments(0) Diggs(0)
class A {public: A() { init(); } virtual void init() { printf("A::init\n"); }};class B : public A {public: B() { init(); } virtual void init() { print... Read More
posted @ 2013-10-16 04:54 findumars Views(384) Comments(0) Diggs(1)
class A {public: A() { printf("A \n"); } ~A() { printf(" ~A \n"); }// 这里不管写不写virtual,删除B对象的时候,都会被执行。因为这个例子是B*指针指向B对象,不是A*指针指向B对象。};class B : public A{... Read More
posted @ 2013-10-08 18:25 findumars Views(2701) Comments(0) Diggs(3)
重要的类:TBaseVirtualTree = class(TCustomControl)TCustomVirtualStringTree = class(TBaseVirtualTree)TVirtualStringTree = class(TCustomVirtualStringTree)TCu... Read More
posted @ 2013-09-21 05:32 findumars Views(2136) Comments(0) Diggs(0)
CREATE TABLE `test` ( `col1` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `col2` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL) ENGINE = MYISAM ;错误(不可以插入null值):INSERT INTO `test` VALUES (null,1);正确(插入''没问题):INSERT INTO `test` VALUES ('',1);INSER Read More
posted @ 2013-09-19 02:39 findumars Views(2101) Comments(0) Diggs(0)