下面是部分程序:getcommsata(hcom,lpdcb);
lpdcb.baudrate:=9600;
lpdcb.stopbits:=1;
lpdcb.bytesize:=8;
lpdcb.parity:=0;if setcommstate(hcom,lpdcb) then
showmessage("set success");
上面的setcommstate返回的值是不成功,也就是说不能showmessage("set success")请问上面的代码有什么问题我就是想设置一个COM口为名9600,n,8,1
lpdcb.baudrate:=9600;
lpdcb.stopbits:=1;
lpdcb.bytesize:=8;
lpdcb.parity:=0;if setcommstate(hcom,lpdcb) then
showmessage("set success");
上面的setcommstate返回的值是不成功,也就是说不能showmessage("set success")请问上面的代码有什么问题我就是想设置一个COM口为名9600,n,8,1
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货