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!

output from serial port

Status
Not open for further replies.

mattyboy

Programmer
Jan 16, 2003
1
GB
i am new to programming and need to output from the serial port of my computer. i have created a window and need to output char 'G' down the serial port. any clues?
 
There is an activeX that is perfect:
it is called MSComm 6 (something like microsoft communication ...6).
You can put it in a dialog, set all the properties, and use a function called SetOutput to send...
Now I don't have the MSDN available, but if you can't solve the problem write so, and I'll be more specific.
 
If you don't like to use activeX, then you can also try WriteFile function. But before you do so, make sure you use OpenFile function to open the communication port. You can browse the online msdn for more information on the two functions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top