使用方法:Dim m_cs232 As New CRs232m_cs232.openPort() '打开串口Dim send() As Byte = {&H1, &H2, &H3}m_cs232.write(send) '发送Dim i as integer = m_cs232.GetReadBuffer() '得到串口输入缓冲区当前字节数Dim rev() As Byterev = m_cs232.read(3) '读取3个字节m_cs232.clsPort() '清空串口输入缓冲区m_cs
运行环境:Win 2000 Server + SQL Server 2000 + MS vs.net Framework1.1 文件说明:SmallHouse为电子选课系统项目工程文件 DataBase文件夹下为数据库文件(SmallHouse.mdf和SmallHouse_log.LDF文件) SmallHouse.sql 为创建数据库及数据表的SQL脚本文件。