how to send data through coms

i need to send data throgh my com1 exit. how am i doing it?
thanks
MSDN article on serial port communications
http://www.google.com/search?btnI=1&q=msdn+Serial+Communications+in+Win32

Essentially, just open the port as a file:
1
2
ofstream comport( "com1" );
//ready to write 


Hope this helps.
thanx duoas
Topic archived. No new replies allowed.