登录
首页 » Visual Basic » CommTest485

CommTest485

于 2015-07-23 发布 文件大小:19KB
0 239
下载积分: 1 下载次数: 1

代码说明:

  测试com口程序Private Sub Form_Load() Dim I As Integer Dim Msg As String Me.Enabled = False Msg = 串行端口通讯测试 V & App.Major & . & App.Minor & App.Revision cboCommSettings.Text = GetSetting(App.EXEName, frmCommTest , CommSettings , 2400,N,8,1 ) Me.Show Me.Refresh With MSComm1 For I = 1 To 16 Me.Caption = Msg & - 测试通讯端口:COM & I & ... Me.Refresh Delay 100 On Error Resume Next .CommPort = I .Settings = 2400,N,8,1 .PortOpen = True .PortOpen = False If Err = 0 Then cboCommPort.AddItem COM & Trim(I) Next I End With cboCommPort.ListIndex = 0 optCommData(0).Value = True Me.Caption = Msg & (Programming by WJY) Me.Refresh If cboCommPort.ListCount = 0 Then MsgBox 程序检测不到可用的串行端口! Me.Enabled = True End Sub (test com port)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Fscrn
    VC MFC全屏显示切换示例,精选学习源码,很好的参考资料。(VC MFC full screen display switching example, select learning source code, a good reference.)
    2013-12-25 10:26:24下载
    积分:1
  • VCdeepdemastrationcode1-6
    VC深入详解的随书源码,第1章到第6章全部示例(VC++ in-depth Xiangjie-demand book source code, Chapter 1- Chapter 6 All samples)
    2009-09-10 16:48:37下载
    积分:1
  • VTK-Users-Manual
    VTK用户手册(VC++版),包含VTK系统架构概述,使用基础,VTK可视化技术,三维体数据,数据接口对象等内容(VTK User s Manual (VC++ edition), including VTK system architecture overview, use foundation, VTK visualization technology, three-dimensional volume data, data interface object, etc.)
    2016-01-24 16:34:23下载
    积分:1
  • Wind
    VB的一个弹窗广告作弊软件,让你的收入大幅度提升,源码很简单(VB cheating a pop ad software, to greatly enhance your income, source code is very simple)
    2010-09-28 12:12:33下载
    积分:1
  • bin2inc
    Binary to C include file
    2020-06-25 07:00:02下载
    积分:1
  • shuzhijisuanxinhaochuliVBkongjian
    信号处理的控件,非常有用,大家可以仔细学习一下,对以后的应用有很多好处(Signal processing control, very useful, we can carefully learn about the application of the future has many advantages)
    2008-05-26 16:27:18下载
    积分:1
  • Client
    利用socket编程实现数据的发送和接收(Use socket programming to send and receive data)
    2016-04-03 11:03:43下载
    积分:1
  • Calibration
    this is reference about calibration using visual c++.
    2010-12-23 17:26:02下载
    积分:1
  • pragma
    网上收集的常用pragma指令的用法,对于使用其他c++库很值得学习(Online collection of common usage of pragma directives for the use of other c++ Library is worth learning)
    2008-07-23 00:40:30下载
    积分:1
  • flower-word
    这是一个简单的花指令程序,里面的花指令是用汇编写的,使用的时候请把注释取消掉就可以了。虽然添加了花指令,但是程序一样可以运行,如果可以的话你可以查看添加花指令前后的反汇编,推荐使用工具OD。 程序使用VC++写的,但是VS也可以打开。(This is a simple flower instruction program, which flower instruction is written in assembler, use the time to comment, please cancel it. While adding a flower instruction, but the program can still run, if you can, then you can see the flower add disassembly instructions before and after the recommended tool OD. Program uses VC++ write, but can also open VS.)
    2014-01-03 14:21:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载