jjw

写给自己的博客。 记录学习的点滴以备查。
随笔 - 127, 文章 - 0, 评论 - 8, 阅读 - 62632
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  lazarus

摘要:安装libgtk2.0-dev 阅读全文

posted @ 2023-03-31 11:10 jjw 阅读(29) 评论(0) 推荐(0) 编辑

摘要:unit mainformunit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls; type ITest = interface function 阅读全文

posted @ 2021-01-28 22:25 jjw 阅读(323) 评论(0) 推荐(0) 编辑

摘要:在delphiXE中,可以使用匿名方法,线程中用起来比较方便,lazarus目前不支持匿名方法,在不继承线程的情况下,使用匿名线程或TThread.ExecuteInThread时,需要单独写两个方法:一个给TThread.ExecuteInThread用,另一个给同步用。感觉比较麻烦,并且可读性略 阅读全文

posted @ 2021-01-27 17:03 jjw 阅读(481) 评论(0) 推荐(1) 编辑

摘要:用法:不要手工添加heaptrc单元,应该在编译选项中勾选 Using heaptrc in Lazarus To enable this in your Lazarus project: Go to Project Options/Linking and in the Debugging sect 阅读全文

posted @ 2021-01-26 21:56 jjw 阅读(229) 评论(0) 推荐(0) 编辑

摘要:在mysql下载站点下载驱动文件:libmysqlclient20_5.7.28-1debian9_amd64 64位 ,1.5M 安装后,lazarus IDE 就可以直接连MYSQL了。 数据库测试环境: win10 + mysql5.7 --64位。 补充: MYSQL默认只能localhos 阅读全文

posted @ 2019-12-25 00:06 jjw 阅读(902) 评论(0) 推荐(0) 编辑

摘要:procedure TMyThread.Execute; begin //Application.EventLog.FileName:='d:\xx.txt'; //Application.EventLog.Info('OKOKOK'); //DbgOutThreadLog('OOKKOOKK' + 阅读全文

posted @ 2019-12-24 12:00 jjw 阅读(459) 评论(0) 推荐(0) 编辑

摘要:lazarus中的TSQLQuery相当于delphi中的TClientDataSet,必须 SQLQuery.ApplyUpdates; SQLTransaction.Commit; 数据才能提交. TSQLQuery.Options可以设定是否自动提交.默认是false.另外TSQLConnec 阅读全文

posted @ 2019-12-23 23:40 jjw 阅读(818) 评论(0) 推荐(0) 编辑

摘要:lazarus站点的文档中看到的.简单用法: uses LCLProc; DbgOutThreadLog (msg: string); overload; --有好几个不同参数的定义. 阅读全文

posted @ 2019-12-23 19:55 jjw 阅读(628) 评论(0) 推荐(0) 编辑

摘要:1 . 从https://www.freetds.org/ 下载驱动源文件 2. 参照 https://www.freetds.org/userguide/config.htm 内容编译 3. 启动lazarus后,放入相应的控件。代码加上 self.SQLDBLibraryLoader1.Libr 阅读全文

posted @ 2019-11-29 13:32 jjw 阅读(769) 评论(0) 推荐(0) 编辑

摘要:环境 vmvare + deepin Linux64 + lazarus2.0.6 参考:https://wiki.freepascal.org/Cross_compiling_for_Win32_under_Linux文档下的 An example under Bunsen Labs (Debia 阅读全文

posted @ 2019-11-29 12:42 jjw 阅读(773) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示