I   have   used  outportn(base,pin); cmd with header file dos.h
and as per my knowledge there are no errors in the program.
BUT ITS NOT WORKING for crazy it worked ones in my friends computer and never worked again ...  What should I do ??Please help me 
I use XP.

Recommended Answers

All 9 Replies

All of the comments I've found (with my Google search that you should have made) indicate that application level programs under 32-bit windows (aka Win32) cannot directly access the I/O ports.

The primary suggestion appears to be that if you really need that level of access to the hardware you will need to write a driver to support it. There was also a mention of some sample code included in the Windows DDK.

I have no personal experience in that area, good luck.

> I have used outportn(base,pin); cmd with header file dos.h
Which is older - you or your compiler?

I'm figuring you're using some fossil like TurboC.

The answer is to "get with the times", and use a compiler which is actually compatible with your OS, and not something which is half-heartedly supported for backward compatibility.

I installed GiveIO
But its not working is there any other way out

which is the latest C compiler please tell me

still riding with problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.