上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 70 下一页

2020年10月20日

Delphi WinAPI 消息函数 PostMessage

摘要: Delphi WinAPI 消息函数 PostMessage 描述:在与创建指定窗口的线程关联的消息队列中放置(发布)消息,并在不等待线程处理消息的情况下返回。要在与线程关联的消息队列中发布消息,请使用PostThreadMessage函数。 原型: BOOL PostMessageA( HWND 阅读全文

posted @ 2020-10-20 16:11 滔Roy 阅读(2798) 评论(0) 推荐(0) 编辑

Delphi DBGrid 操作单元格边框

摘要: Delphi DBGrid 操作单元格边框 procedure TForm1.DBGrid1CellClick(Column: TColumn); var iCol,iRow:Integer; rRect:TRect; begin iCol := TDrawGrid(DBGrid1).Col; // 阅读全文

posted @ 2020-10-20 08:22 滔Roy 阅读(504) 评论(0) 推荐(0) 编辑

2020年10月16日

Delphi COM[2] 创建、安装、导入

摘要: Delphi COM[2] 创建、安装、调用 1、Com+的创建 1、File >New >Other.... >ActiveX Library 标签下的 Transactional Object 2、然后填写: CoClss Name :类的名字,比如:ComTest Threading Moda 阅读全文

posted @ 2020-10-16 14:08 滔Roy 阅读(553) 评论(0) 推荐(0) 编辑

Delphi COM[1] 基础知识介绍

摘要: Delphi COM[1] 基础知识介绍 1、COM概念介绍 COM(Component Object Model,组件对象模型)是微软定的一种组件编写的规范,,它是一种与平台无关、语言中立、位置透明、支持网络的中间件技术,即不管你是用C、DELPHI、VB什么语言写的,只要遵守编码规范就是COM组 阅读全文

posted @ 2020-10-16 09:58 滔Roy 阅读(417) 评论(0) 推荐(0) 编辑

2020年10月15日

SQL 语句对每一行进行循环操作的几种方法

摘要: SQL 语句对每一行进行循环操作的几种方法 1、游标 Declare @SN varchar(16) --变量 Declare iCursor Cursor For --游标 select Distinct SNum from Table1 where zd1 like '%test%' Open 阅读全文

posted @ 2020-10-15 16:51 滔Roy 阅读(2942) 评论(0) 推荐(0) 编辑

2020年10月14日

SQL SET NOCOUNT (Transact-SQL) - 不显示行数结果集的返回消息

摘要: SQL SET NOCOUNT (Transact-SQL) - 不显示行数结果集的返回消息 功能描述:停止显示受Transact-SQL语句或存储过程影响的行数作为结果集的一部分返回的消息。(使返回的结果中不包含有关受 Transact-SQL 语句影响的行数的信息。) 原型: SET NOCOU 阅读全文

posted @ 2020-10-14 14:21 滔Roy 阅读(321) 评论(0) 推荐(0) 编辑

Delphi WinAPI DragAcceptFiles、DragQueryFile、DragFinish、DragQueryPoint - 文件拖拽功能

摘要: Delphi WinAPI DragAcceptFiles、DragQueryFile、DragFinish、DragQueryPoint - 文件拖拽功能 --Delphi uses shellAPI; --WinAPI shellapi.h 1、DragAcceptFiles -注册窗口是否接受 阅读全文

posted @ 2020-10-14 14:04 滔Roy 阅读(866) 评论(0) 推荐(0) 编辑

2020年10月13日

Delphi Thread线程错误:Canvas doesn't allow drawing

摘要: Delphi Thread线程错误:Canvas doesn't allow drawing 错误原因:在使用Thread线程时,所有UI界面的代码都要进行同步,否则,就会出现这个错误。 解决方法: TThread.Synchronize(); Synchronize 源码: procedure T 阅读全文

posted @ 2020-10-13 10:46 滔Roy 阅读(1431) 评论(0) 推荐(0) 编辑

2020年10月12日

Delphi ADOQuery错误:ADOQuery1:commandtext does not return a result set

摘要: Delphi ADOQuery错误:ADOQuery1:commandtext does not return a result set 错误描述:commandtext 不能返回结果集 原因分析:SQL 执行Delete、insert、update 无返回值,故不能用open sSQL:='exe 阅读全文

posted @ 2020-10-12 16:00 滔Roy 阅读(890) 评论(0) 推荐(0) 编辑

SQL 查询时间超时已过期(SQL 2000、SQL2005、SQL2008、SQL2012等)

摘要: SQL 查询时间超时已过期(SQL 2000、SQL2005、SQL2008、SQL2012等) 1、设置 SQL Server Management Studio 以下SQL 2008示例:工具--选项 1.1、查询执行--执行超时值 1.2、设计器: 超过此时时间后事务超时 1.3、SET LO 阅读全文

posted @ 2020-10-12 14:19 滔Roy 阅读(2606) 评论(0) 推荐(0) 编辑

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 70 下一页

导航