View Full Version : C++ , More than stand alone

Active X
11-12-2007, 02:11 PM
;) Thank you for visiting this thread .

I wanna send data out on my COM1 . I tested this code with turbo C++ 3.0 :

// This program is written and compiled in Turbo C++ 3.0

#include <iostream.h>
#Include <conio.h>

int main()
outp(0x80ffff,125); // It means that It must send 125 to port 0x88ffff for example
cout << inp(0x88ffff); // You will get 125 !
return 0;

It compiled the program but the data I received from COM1 was exactly what had sent to it .
I tested the above code with Borland C++ builder X 2002 , But there weren't even the outp and inp functions .
I need this code to communicate with my robot .

Could send me a code usable in Borland C++ Builder X ? :confused: Will be really thankful ;)