How do I open COM1 for read.write access in C

T

tstone

My computer is running Windows XP and I have the Visual C++ Express
Edition compiler. I need to write a program that drives an ASCII
device via the COM1 port. I'm having trouble locating documentation
on the proper syntax for opening the COM port device and registering
for interrupts from the Com port so that I can handle the I/O on a
character by character basis (required for the hardware that will be
attached).

Can anyone supply links to the appropriate documentation?

Thanks

Tom
 
D

Detlev Dreyer

tstone said:
My computer is running Windows XP and I have the Visual C++ Express
Edition compiler. I need to write a program that drives an ASCII
device via the COM1 port. I'm having trouble locating documentation

Why don't you repost your problem (via Newsreader) to the experts at
news://msnews.microsoft.com/microsoft.public.vstudio.development
 
N

NoConsequence

My computer is running Windows XP and I have the Visual C++ Express
Edition compiler. I need to write a program that drives an ASCII
device via the COM1 port. I'm having trouble locating documentation
on the proper syntax for opening the COM port device and registering
for interrupts from the Com port so that I can handle the I/O on a
character by character basis (required for the hardware that will be
attached).

Can anyone supply links to the appropriate documentation?

Thanks

Tom
You ask in a group dealing with programming in C.

Ask elsewhere
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top