how can I Access LPT port in win XP ? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how can I Access LPT port in win XP ?

aryan12aryan12 Posts: 8Member
Dear all
I want to know how can I access the LPT port in Windows XP.
I try the
...
asm
mov dx,$378
mov al,Dout
out dx,al
end;
...

in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
I will be thankful of you , if guide me with a sample source code.

Best Regards

Comments

  • neoandresenneoandresen Posts: 7Member
    You need some kind of driver or module. I know a hardware programmer who had the same prob. And he found some kind of module. Sorry but that is all I know. Hope i helped a little.

    : Dear all
    : I want to know how can I access the LPT port in Windows XP.
    : I try the
    : ...
    : asm
    : mov dx,$378
    : mov al,Dout
    : out dx,al
    : end;
    : ...
    :
    : in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
    : I will be thankful of you , if guide me with a sample source code.
    :
    : Best Regards
    :
    :

  • aryan12aryan12 Posts: 8Member
    Dear neoandresen

    Thanks for your attention.

    best regards.

    : You need some kind of driver or module. I know a hardware programmer who had the same prob. And he found some kind of module. Sorry but that is all I know. Hope i helped a little.
    :
    : : Dear all
    : : I want to know how can I access the LPT port in Windows XP.
    : : I try the
    : : ...
    : : asm
    : : mov dx,$378
    : : mov al,Dout
    : : out dx,al
    : : end;
    : : ...
    : :
    : : in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
    : : I will be thankful of you , if guide me with a sample source code.
    : :
    : : Best Regards
    : :
    : :
    :
    :

  • neoandresenneoandresen Posts: 7Member
    [b][red]This message was edited by neoandresen at 2004-7-19 11:53:39[/red][/b][hr]
    Hmm. Sorry with the last answer. I think I found the solution for your prob. On google... I am pretty sure that this is what your are looking for.

    http://www.specosoft.com/download/zlportio.zip

    You should be able to finde some info on zlportIO with google. I found it in one of my hardware projects...

    Here is a Delphi project where it is used:

    http://brinck.dk/filer/Br848.zip

    Here is a related link

    http://www.epanorama.net/circuits/parallel_output.html

    Here are a very use full link if your are doing hardware dev.

    http://www.epanorama.net/

    Sorry my bad english.

    BG. Asbjrn

    : Dear neoandresen
    :
    : Thanks for your attention.
    :
    : best regards.
    :
    : : You need some kind of driver or module. I know a hardware programmer who had the same prob. And he found some kind of module. Sorry but that is all I know. Hope i helped a little.
    : :
    : : : Dear all
    : : : I want to know how can I access the LPT port in Windows XP.
    : : : I try the
    : : : ...
    : : : asm
    : : : mov dx,$378
    : : : mov al,Dout
    : : : out dx,al
    : : : end;
    : : : ...
    : : :
    : : : in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
    : : : I will be thankful of you , if guide me with a sample source code.
    : : :
    : : : Best Regards
    : : :
    : : :
    : :
    : :
    :
    :



  • MAZOO7YMAZOO7Y Posts: 1Member
    : [b][red]This message was edited by neoandresen at 2004-7-19 11:53:39[/red][/b][hr]
    : Hmm. Sorry with the last answer. I think I found the solution for your prob. On google... I am pretty sure that this is what your are looking for.
    :
    : http://www.specosoft.com/download/zlportio.zip
    :
    : You should be able to finde some info on zlportIO with google. I found it in one of my hardware projects...
    :
    : Here is a Delphi project where it is used:
    :
    : http://brinck.dk/filer/Br848.zip
    :
    : Here is a related link
    :
    : http://www.epanorama.net/circuits/parallel_output.html
    :
    : Here are a very use full link if your are doing hardware dev.
    :
    : http://www.epanorama.net/
    :
    : Sorry my bad english.
    :
    : BG. Asbjrn
    :
    : : Dear neoandresen
    : :
    : : Thanks for your attention.
    : :
    : : best regards.
    : :
    : : : You need some kind of driver or module. I know a hardware programmer who had the same prob. And he found some kind of module. Sorry but that is all I know. Hope i helped a little.
    : : :
    : : : : Dear all
    : : : : I want to know how can I access the LPT port in Windows XP.
    : : : : I try the
    : : : : ...
    : : : : asm
    : : : : mov dx,$378
    : : : : mov al,Dout
    : : : : out dx,al
    : : : : end;
    : : : : ...
    : : : :
    : : : : in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
    : : : : I will be thankful of you , if guide me with a sample source code.
    : : : :
    : : : : Best Regards
    : : : :
    : : : :
    : : :
    : : :
    : :
    : :
    :
    :
    :
    :

  • SniffeXSniffeX Posts: 9Member
    U have to use a command use opencomm('lpt1',......, i dont remeber the rest, but look for it into delphi help.


    sorry thats all i know, i've try it and worked.
  • aryan12aryan12 Posts: 8Member
    Thanks for your kind reply.




    : U have to use a command use opencomm('lpt1',......, i dont remeber the rest, but look for it into delphi help.
    :
    :
    : sorry thats all i know, i've try it and worked.
    :

  • MasterijnMasterijn Posts: 188Member
    : Dear all
    : I want to know how can I access the LPT port in Windows XP.
    : I try the
    : ...
    : asm
    : mov dx,$378
    : mov al,Dout
    : out dx,al
    : end;
    : ...
    :
    : in Delphi . the above code dont work in win XP , but work correctly under win 95/98/ME .
    : I will be thankful of you , if guide me with a sample source code.
    :
    : Best Regards
    :
    :
    I think you can access it as a file like: TFileStream.Create('LPT1', ..


Sign In or Register to comment.