Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Serial Port using VC++

$
0
0
Hi everyone, I am trying to write data to serial port. I am using WriteFile() - a built in function. I need to send data in integer format, but it sends data in ASCII format (CString). If I wish to send "123" it will send it as 0x31H then 0x32H and then 0x33H. Can you please tell me how to configure the code so that it start sending data in integer format? 123 as 0x7BH.

Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>