byte xfr[3];
xfr[0]= AA;
WriteFile( h_Com, &xfr, 1, &BytesWrtn, NULL);
If this sends only one element to rs232 port, how to send
a whole binary file to serial port using same function?.
Printable View
byte xfr[3];
xfr[0]= AA;
WriteFile( h_Com, &xfr, 1, &BytesWrtn, NULL);
If this sends only one element to rs232 port, how to send
a whole binary file to serial port using same function?.
perhaps this helps?Quote:
Originally posted by pharma
If this sends only one element to rs232 port, how to send
a whole binary file to serial port using same function?.
http://www.codeguru.com/Cpp/I-N/netw...icle.php/c2503
If you have no protocol-library, you have to open your file for reading and send each Byte, close the file, etc...
Ciao,
Ferdinando
Change the 1 to a 3.