Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Nullio

listening on serial and printer port

This topic is 6206 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Yikes, haven''t done this for ages. You definitely use CreateFile, but instead of passing a filename, you pass something like:

\\.\COM1:

Having just looked at the MSDN documentation, they just use "COM1" as a filename, so that might work also.

To configure the device properly you need to know about COMMDCB structures etc. so it''s worth taking a look at the documentation. Look up BuildCommDCB and look at the associated section in MSDN.

Share this post


Link to post
Share on other sites
I wrote a small console program that could read and write to the parallel port, but I''ve since lost it. It didn''t use anything complicated at all, but I forget what I did...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!