delbert Harry
April 15th, 1999, 12:38 PM
I would like to get access to the port on my computer. I am writing an app that must communicate with a piece of equipment that is connected to the serial port.
|
Click to See Complete Forum and Search --> : Communicating with serial port delbert Harry April 15th, 1999, 12:38 PM I would like to get access to the port on my computer. I am writing an app that must communicate with a piece of equipment that is connected to the serial port. Miguel April 16th, 1999, 03:19 AM Hi: Perhaps you can try it with the MSComm32.ocx. This control (MSComm32.ocx), has properties, methods and events that you can use for working with the serial port after insert the ocx control in your application. I hope that this text can help you. Bye.... April 16th, 1999, 06:49 AM It's a cinch. You should just use CreateFile function to open serial port, then ReadFile and WriteFile to read and write to port. For details refere to help. There are examples of doing this in MSDN library. It will be useful to get through them. delbert Harry April 16th, 1999, 08:59 AM I would like to know if you have a sample that I can look at of how to connect to and read/write to the com1 serial port? Fabian April 16th, 1999, 09:18 AM Hi there, take a look to this article, I'm pretty sure it'll help you. Also it has a sample application. http://www.microsoft.com/Win32Dev/BASE/SERIAL.HTM Fabian codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |