delphi 下API函数写串口

阿松啦 16 0 RAR 2020-05-23 11:05:05

delphi利用API函数写串口。 //建立串口句柄 CommHandle:=CreateFile(PChar(ComboBox1.Text),GENERIC_WRITEorGENERIC_READ, 0,nil,OPEN_EXISTING,FILE_FLAG_OVERLAPPEDorFILE_ATTRIBUTE_NORMAL,0); ifCommHandle=INVALID_HANDLE_VALUEthen begin CloseHandle(PostEvent); CloseHand

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

很好的代码

Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

不错可以用,要自己调下

Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

不能接收数据

Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

不错可以用

Generic placeholder image 卡了网匿名网友 2020-05-23 11:05:05

下载很久了,学习了很多,谢谢!