Sejou писал(а):Подключить элемент "Microsoft Comm Control"
Меню Project - Components
Вставить элемент в проект
GSerg писал(а):open "COM1" for output as #1
? #1, "Гы!"
close #1
Zer писал(а):mscomm.InputLen=0![]()
![]()
![]()
Хрент тогда оттуда чего считаешь... ...так в буфере до закрытия и останется...
The default value for the InputLen property is 0. Setting InputLen to 0 causes the MSComm control to read the entire contents of the receive buffer when Input is used.
Я не проверял, но MSDN-у обычно предпочитаю верить...Zer писал(а):To tyomitch: Нифига он у меня при InputLen=0 не считывал! Проверял!
The following table lists the valid baud rates.
Setting
110
300
600
1200
2400
4800
9600 (Default)
14400
19200
28800
38400
56000
57600
115200
128000
256000
BaudRate
Specifies the baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following baud rate indexes:
CBR_110
CBR_19200
CBR_300
CBR_38400
CBR_600
CBR_56000
CBR_1200
CBR_57600
CBR_2400
CBR_115200
CBR_4800
CBR_128000
CBR_9600
CBR_256000
CBR_14400
Сейчас этот форум просматривают: Google-бот и гости: 4