Borland Code in Win32

Status
Not open for further replies.

Sigma|Six

Member level 1
Joined
Feb 6, 2006
Messages
32
Helped
6
Reputation
10
Reaction score
1
Trophy points
1,288
Location
in The Sky
Activity points
1,621
Hi expert out there,

:idea:I am doing some experiment using "geninterrupt" from "dos.h from borland" C++ compiler for HW communication through PCI bus.

:?:I would like to know if code compiled using Borland C++ will work in the win32 or Win XP environment. Can I seamlessly talk to my Hardware in that environment or it is not possible at all.

:?:Also, is there any substitution for "geninterrupt" in microsoft environment (VC 6++) ?

:!:There are reason I have to avoid Win DDK and WinDriver or WinRT so I have to look into Borland's option.

Please advise.

Thank you.

Best Regards,
Karn Hwa
 

This will not work in XP, or win2000. You will need a PCI device driver to communicate with your device.
 

Take a look at PortTalk from BeyondLogic.org
This lets you talk to any port bypassing the hal.
It might help you?
 

Hi bass,

I guess I am gonna give up the Borland way as in XP/NT, all the ports are somehow controlled by the windows kernel.

Borland's time had come and go.

So, my next persue is to do the PCI control using either WinRT or WinDriver.

I am not sure PortTalk can accomplish my need. I know it works well controlling parallel and serial, but my target is PCI.

Thank you.

Best Regard,
KarnHwa
 

Hi, may i ask...

Why i cant access the parallel port using "inportb", "outportb" , "delay" functions in the new version of Borland C++ Compiler 5.5?

I found this at the internet, the program actually can access the parallel port.
http://www.hytherion.com/beattidp/comput/pport.htm
Is this method applicable?

By using PortTalk, will it make my life easier :?:
 

Hi KM,

PortTalk is a program that "open" the Parallel/Serial Port in WinXP environment for your code (Borland, VB, VC++) that uses IO Port.

You should read thru the porttalk manual to learn how to "open" ports for your program you had written.

I believe with using PortTalk, your code that uses inportb, outportb and delay will function accordingly.
I tried before in a VB code controlling serial port in XP environment.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…