Y
ykjiang
Unregistered / Unconfirmed
GUEST, unregistred user!
我在计算机上加装了一个Digi的USB转8串口卡,在计算上显示为com3到com10.
使用hcomfile:=CreateFile('COM9',GENERIC_READ or GENERIC_WRITE,0,nil,
OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);
打开串口com1,com2,...com9都没有问题,
但是hcomfile:=CreateFile('COM10',GENERIC_READ or GENERIC_WRITE,0,nil,
OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);出错
hcomfile1=INVALID_HANDLE_VALUE,串口不能使用.
使用hcomfile:=CreateFile('COM9',GENERIC_READ or GENERIC_WRITE,0,nil,
OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);
打开串口com1,com2,...com9都没有问题,
但是hcomfile:=CreateFile('COM10',GENERIC_READ or GENERIC_WRITE,0,nil,
OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);出错
hcomfile1=INVALID_HANDLE_VALUE,串口不能使用.