15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


OLE - MS Comm Ctrl & serial i/o ???

John Howard Robertson -- jrobert@howard-ind.com
Wednesday, July 31, 1996

Environment:  Win95;VC++4.2

I am attempting to write code using the OLE control - "Microsoft Comm =
Control"  in order to perform serial i/o.

I was hoping someone out there might have a few leads to some sample =
code or documentation on using the MFC class - CCMSCommCtrl and/or =
performing serial i/o.

The code I am writing will control communications with analog and =
digital i/o controllers via a serial line.  Therefore, I am concerned =
about the performance of the CCMSCommCtrl class vs. direct Win32 API =
calls.
Any suggestions appreciated.

thanks,
	John Howard Robertson
	jrobert@howard-ind.com




Rich Sandler -- sandlr@tts.com
Monday, August 05, 1996

> The code I am writing will control communications with analog and =
> digital i/o controllers via a serial line.  Therefore, I am concerned =
> about the performance of the CCMSCommCtrl class vs. direct Win32 API =
> calls.

Hello,

Be aware that the MSComm control, does not allow speeds above 19200.  I was
looking into using the MSComm control too, until I realized that it could not
handle 57600.  I also ran into problems when trying to send data with embedded
NULLs (0x0).   I looked at the MicroHelp comm control, and it too, had problems
sending embedded 0x0's.  I currently use the Win32 api for communications.

good luck,
-- Richard Sandler			sandlr@tts.com
-- Programmer
-- TTSI					http://www.tts.com




| Вернуться в корень Архива |