Board index » cppbuilder » Undefined Function 'outportb' in Borland C++ 5.02
Rizwan
CBuilder Developer |
Rizwan
CBuilder Developer |
Undefined Function 'outportb' in Borland C++ 5.022005-11-05 05:52:00 AM cppbuilder0 Hello I am trying to compile a program in Borland C++ 5.02 and when I call a function outportb() it gives me an error which states: Call to undefined function 'outportb'. I have included the stdio.h and dos.h file into my code but still not working. I have to turn in this project within couple of days. If you have the solution, could you please email me the solution at XXXX@XXXXX.COM Thank You Rizwan |
maeder
CBuilder Developer |
2005-11-05 06:49:14 AM
Re:Undefined Function 'outportb' in Borland C++ 5.02
"Rizwan" < XXXX@XXXXX.COM >writes:
QuoteI am trying to compile a program in Borland C++ 5.02 and when I call QuoteI have to turn in this project within couple of days. QuoteIf you have the solution, could you please email me the solution at newsgroup posts. Better come here again soon, to read the response to your questions and to help others. |
D Fine
CBuilder Developer |
2005-11-07 01:25:16 AM
Re:Undefined Function 'outportb' in Borland C++ 5.02
"Rizwan" < XXXX@XXXXX.COM >wrote:
QuoteHello {smallsort} |
D Fine
CBuilder Developer |
2005-11-07 01:26:15 AM
Re:Undefined Function 'outportb' in Borland C++ 5.02
"Rizwan" < XXXX@XXXXX.COM >wrote:
QuoteHello RTL elements farfree faralloc farmalloc farheapcheck farrealloc inp inpw outp outpw inport inportb outport outportb |
D Fine
CBuilder Developer |
2005-11-07 01:54:50 AM
Re:Undefined Function 'outportb' in Borland C++ 5.02
First, my apologies for my last few replies to this post.
I would recommend: www.beyondlogic.org/porttalk/porttalk.htm I have spoken to a fellow student who needed to control a camera through on/off parallel port signals - he was also more familiar with dos programming and managed to do this in windows using such a driver. He wrote an 'outport' routine that compiled with some old dos code and redirected data to the required port via the driver. However, it did require him to disable the default windows parallel port driver as this polls the port frequently to check if a printer is connected. One can access the serial port via windows APIs without the need for a driver but it requires some reading up - I do not know anyone who has done this. If this project is educational then this information should suffice. If you have some cash, a simple Internet search will always turn up someone offering windows interfacing APIs for both the commercial and educational/research markets. Hope this helps. |
maeder
CBuilder Developer |
2005-11-07 02:32:55 AM
Re:Undefined Function 'outportb' in Borland C++ 5.02
"D Fine" < XXXX@XXXXX.COM >writes:
QuoteThis appears in the help files for bcc32 5.5.1 same software house). "Borland C++ 5.5.1" is the compiler of C++ Builder 5. This does not mean that I don't think your post is helpful, because outportb() is not supported by C++ Builder 5 for the same reason it isn't by Borland C++ 5.02 (at least for some configurations). |