当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 在RS232中有4个脚位可用来回应讯号给电脑分別为CTS,DSR
 

 

 ·dbgrid中用光标键控制cell     »显示摘要«
    摘要:{////////////////////////// //// grids549 //// //// 14:33 2005-2-17 //// //}////////////////////////unit grids549; interface uses dbgrids, classes, windows; type tdbgrid549 = class(tdbgrid) public ......
    摘要:本文参照了http://blog.csdn.net/dtianx/archive/2004/11/17/184949.aspx相信用过qq、msn中的动画表情对我们的吸引力了吧。在前几天我的一个小应用中需要添加这样的一个功能,首先从网上下载了rxlib2.75(包括rxrichedit),安装后测试了一下它提供的例子$(delphi)\rx\demo\riched2\richedit.dpr,在使......


检查RS232(串口)是否接有设备
在rs232中有4个脚位可用来回应讯号给电脑分別为cts,dsr,ring,rlsd当未接上设备时,脚位的电太皆为低电压,讯号传回off,很多设备都利用此四个脚位与电脑沟通,所以检查脚位电压就知道改com上是否有设备存在

ms_cts_on,ms_dsr_on,ms_ring_on,ms_rlsd_on 【程序编程相关:win32 API窗口句柄的获得——我的

【推荐阅读:Delphi中的DLL封装和调用对象编写

procedure tform1.button1click(sender: tobject); 【扩展信息:Delphi 7 中使用RAVE报表(四

var

cc:tcommconfig;

hcomm:thandle;

com:string;

ls:dword;

begin

com:=com2;

hcomm:=createfile(pchar(com),generic_read or generic_write,0,nil,open_existing,0,0);

if getcommmodemstatus(hcomm,ls) then

begin

if(ls and ms_cts_on)=ms_cts_on then

begin

button1.caption:=ctson


...   下一页
 ·authorware ucd 开发大揭秘(七)     »显示摘要«
    摘要:vcl的辉煌(二) 一 tgraphiccontrol的叛变   在上面这个例子中,请再注意一下:mediaplayer元件是继承于twincontrol的,也就是说,能够被其他窗口“容纳”的元件必须是具有窗口句柄属性特征的元件,也即具有“parent”属性。 那么不是从twincontrol继承下来的元件就无法用于authorware了吗?不过还好......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE