-
May 8th, 2004, 09:24 AM
#1
serial (RS232) question
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?.
-
May 8th, 2004, 09:53 AM
#2
Re: serial (RS232) question
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?.
perhaps this helps?
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
-
May 8th, 2004, 10:07 AM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|