Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial program urgent !

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,
I urgently need a program to send strings to a com port.
So a program that writes the string that I give it as argument (command line) to a com port also as argument.
I want to program it myself but I have no idea how to start... any help is appreciated.

thnx. Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
You didn't mention what OS. It is diffrent for different OS. For example in Win 9x, you could use inport and similar calls but with Win NT, 2K, XP, etc you have to use SetCommState and DCB (device control blocks) and then you can use the com port just like a file and use streams, CreateFile, or whatever.

I've forgotten how to do it in Unix and I would have to look up how I did it in DOS. James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.

[tab][tab]Albert Einstein exlaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top