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.
Printable View
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.
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....
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.
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?
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