Jump to content
  • Advertisement

Archived

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

Shannon Barber

Com Port

This topic is 6410 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

What''s the easiest way to open up a com port and spit some text out it? HANDLE hComFile; CreateFile("Com1",... SetCommDCB (or whatever) is their a way with less stuff? Like an OpenComm(1, 9600, 8, 0, noparity); ?

Share this post


Link to post
Share on other sites
Advertisement
quote:

FILE *fp = fopen("COM1");



If that doesn't work try this:

quote:

FILE *fp = fopen("COM1:");



At least I think that would work as it is possible to redirect stuff to COMx: in the shell in Windows...

Edited by - Muzzafarath on November 28, 2000 3:24:47 AM

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!