C Language

I

Thread Starter

ismail nasar

i would like to send the data in c language to parallel ports using windows xp. i have sent the data by parallel ports using window 98 by outport(); but it is not working in windows xp. is there anyone who help me?

[email protected]
that is my id
thank u
 
Hi this is vineet here. You might be using the port address 0x378. But in xp you might have to use 0x3bc as the output port and 0x3bd as the input port. I've used it but the speed of output is pretty less as compared to 98.
The reason could be the security provided by xp and nt that the ports can't be accessed directly using dos mode.

[email protected]
 
i would like to send the data to parallel ports using windows xp By using c programuing. is there anyone who help me?
 
It's because of the improved security in Windows XP. The functions inp() and Outp()will not work on an NT platform.
You can try opening the ports before working with your program, but this makes your system more vulnerable...
There are so many prgms that can perform this...

Try this one...
 
there is a file that u need to make the port accessible i relly am not an expert so what i did is that i dounloaded a small free application that controls thr lpt it contained a small file (i didnt know its importance) since then i acessed the lpt freely
 
hai friend. i am aiso having the same problem. i am struggling for answer to complete my projects... please help me.
 
try 0x3bc as the output port, and using outp() twice:
outp(0x3bc, n);
outp(0x3bc, n);

works for me...
if anybody knows why, let me know please...
 
To switch between virtual and real screens I am using

outp(0x3d4,0xc)
outp(0x3d5,0)
outp(0x3d4,0xd)
outp(0x3d5,0)

which seems to work well under the command prompt on NT, 2000, and XP. Very occasionally (say once a month) I get a screen crash but do not know whether this is the cause or not. Does anyone have a 32 bit library version of outp compatible with the Fujitsu C compiler?
 
Top