Delphi是座宝山,有待挖掘1. VCL源码是座宝山,把纷繁复杂的Windows编程封装到短短几个类里,不超过8000行代码,还额外包括许多其它的技巧2. RTL是座宝山,方便程序员使用底层运算,不必自己从头开发,不过这一点倒不是Delphi独有,其它语言也都有的特性,甚至更多,比如C++和Pyt... Read More
posted @ 2014-12-01 17:45 findumars Views(536) Comments(0) Diggs(0)
新建一个空窗体项目,然后运行,此时首先运行:procedure TApplication.Run;begin FRunning := True; try AddExitProc(DoneApplication); if FMainForm nil then begin ... Read More
posted @ 2014-11-28 19:15 findumars Views(994) Comments(0) Diggs(0)
VCL设计方法概论 1. 把Delphi对象改造成一个Windows窗口,主要是要设置Handle和回调函数。在创建一个Windows窗口后,将其句柄赋值给Delphi对象的属性,这个并不难,相当于从此以后这个Delphi控件(或称内存对象)代表了这个Windows窗口,准确的说是包含了这个Wind Read More
posted @ 2014-11-28 17:29 findumars Views(752) Comments(0) Diggs(2)
Form1上放两个按钮Button1和Button2,默认输入焦点是Button1,现在点击Button2,产生WM_LBUTTONDOWN消息procedure TForm1.Button2MouseDown(Sender: TObject; Button: TMouseButton; Shift... Read More
posted @ 2014-11-28 05:43 findumars Views(1018) Comments(0) Diggs(0)
以下因素都有影响:1. QT4与QT5对字符串编码的处理不同(最好不要在源代码里直接写中文,坑更多)2. QTextCodec自动对编码转换的影响3. 源代码文件对编码存储格式的不同会影响编译器对字符串的理解4. 不同版本编译器对源代码文件的理解不同,比如VC6和VC2005的不同,比如VS2010... Read More
posted @ 2014-11-27 18:52 findumars Views(2087) Comments(0) Diggs(0)