Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port input/output using C++Builder (Windows app)?

Status
Not open for further replies.

JackEaton

Technical User
Feb 4, 2005
1
US
I am using C++Builder 3. How do I program for port input/out? The compiler does not recognize inportb and outportb. For Visual Basic I have an API procedure I found on the web. Is something like this available for C++Builder?
 
With Win98 and below it's possible to access the hardware directly, with WinNT, ME, XP, 2K it's _not_ possible to do that, it's a result of Microsoft attempt to secure the stability.

You can however, with special drivers, access the hardware in Win above 98 but it's not all that easy.

Thus it's removed from the BCB.

On different pages on the net there are solutions for that in the form of *.H-files and such, they does however not solve the hardware-access issue with WinXP, they merely adds the command in the language.

Totte
Keep making it perfect and it will end up broken.
 
One of the most popular components for BCB and serial ports is AsyncPro ( I think there is also a component on the Tools disk that came with BCB. If you don't have the disk, you can also download it from Borland.com.


James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top