sending bytes to the serial port
Posted on 2000-03-04
i am trying to send some bytes to serial port and was wondering if there was any function in c++ to do that. i looked in the help files and tried using outport. this is the exact copy of the code in the help files which i tried to use
int port = 0;
int value = 'C';
printf("Value %d sent to port number %d\n", value, port);
but it doesn't work. says undefined function outport. is there some other header file that i need to include or can someone suggest some other function? also, i may want to use c++ builder so can someone suggest some vcl components that i can download that would help me do the same thing?
thanks in advance.