Advanced Delphi

Moderators: None (Apply to moderate this forum)
Number of threads: 331
Number of posts: 741

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how can I Access LPT port in win XP ? Posted by aryan12 on 26 Jun 2004 at 4:39 AM
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

Report
Re: how can I Access LPT port in win XP ? Posted by neoandresen on 15 Jul 2004 at 8:15 PM
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
:
:

Report
Re: how can I Access LPT port in win XP ? Posted by aryan12 on 18 Jul 2004 at 9:54 PM
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
: :
: :
:
:

Report
Re: how can I Access LPT port in win XP ? Posted by neoandresen on 19 Jul 2004 at 11:49 AM
This message was edited by neoandresen at 2004-7-19 11:53:39

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
: : :
: : :
: :
: :
:
:



Report
Re: how can I Access LPT port in win XP ? Posted by MAZOO7Y on 23 Aug 2004 at 8:20 AM
: This message was edited by neoandresen at 2004-7-19 11:53:39

: 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
: : : :
: : : :
: : :
: : :
: :
: :
:
:
:
:

Report
Re: how can I Access LPT port in win XP ? Posted by SniffeX on 11 Oct 2004 at 5:33 PM
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.
Report
Re: how can I Access LPT port in win XP ? Posted by aryan12 on 13 Oct 2004 at 4:53 AM
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.
:

Report
Re: how can I Access LPT port in win XP ? Posted by Masterijn on 14 Oct 2004 at 5:27 AM
: 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', ..





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.