A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » Amateur Astronomy
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

OT - BASIC Interpreter



 
 
Thread Tools Display Modes
  #1  
Old March 7th 04, 07:44 PM
Skybeginner
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter

Is there a way to access the printer port using GWBASIC or Turbo Pascal in
XP?
There's too much overhead rewriting all the old Basic, Pascal programs? I
tried the unworkable utility called PortTalk already.

  #2  
Old March 7th 04, 08:21 PM
Roger Hamlett
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter


"Skybeginner" wrote in message
...
Is there a way to access the printer port using GWBASIC or Turbo Pascal in
XP?
There's too much overhead rewriting all the old Basic, Pascal programs? I
tried the unworkable utility called PortTalk already.

Look for 'allowio'. It should have been with PortTalk, as a 'demo' of how to
use PortTalk. You can run a program to access the LPT1 printer port, by
simply using:

allowio yourapplication.exe 0x378

You can use any port address you want (you gain access to the entire 'page'
of 8bytes). You can even use /a to allow access to all ports, but obviously
this brings the caveat that you can then do a lot of damage by accessing
ports you shouldn't...
PortTalk itself is designed for authors who are writing applications that
want to use ports from inside NT/XP etc.. Allowio, is a simple command line
'wrapper', to allow existing applications access to some ports without any
re-writing.

Best Wishes


  #3  
Old March 7th 04, 08:32 PM
Bob May
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter

You have to tell XP to enable those ports before using the program.
Since I don't use XP, I'm just repeating what I've heard. There is a
mechanism for doing this.

--
Bob May
Losing weight is easy! If you ever want to lose weight, eat and drink less.
Works every time it is tried!


  #4  
Old March 8th 04, 08:13 PM
Skybeginner
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter

Allowio is exactly the utilty that didn't work on my laptop.
It's part of the Porttalk.zip.

Did it work for you?


"Skybeginner" wrote in message
...
Is there a way to access the printer port using GWBASIC or Turbo
Pascal in XP?
There's too much overhead rewriting all the old Basic, Pascal
programs? I tried the unworkable utility called PortTalk already.

Look for 'allowio'. It should have been with PortTalk, as a 'demo' of
how to use PortTalk. You can run a program to access the LPT1 printer
port, by simply using:

allowio yourapplication.exe 0x378

You can use any port address you want (you gain access to the entire
'page' of 8bytes). You can even use /a to allow access to all ports,
but obviously this brings the caveat that you can then do a lot of
damage by accessing ports you shouldn't...
PortTalk itself is designed for authors who are writing applications
that want to use ports from inside NT/XP etc.. Allowio, is a simple
command line 'wrapper', to allow existing applications access to some
ports without any re-writing.

Best Wishes



  #5  
Old March 8th 04, 09:50 PM
Roger Hamlett
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter


"Skybeginner" wrote in message
...
Allowio is exactly the utilty that didn't work on my laptop.
It's part of the Porttalk.zip.

Did it work for you?

Yes.
I have used it (and the Porttalk package itself), for dozens of different
applications with no problems. Are you sure you are setting the port address
correctly, _and_ that the port is configured correctly. Remember that on
most modern machines, the port will be configured in the CMOS to EPP, not
SPP. The EPP mode, uses DMA, and extra high I/O addresses, and may not work
for a program designed to talk to an SPP port. Hence you must set the port
to SPP in the CMOS (and allow XP to find it again with these new settings),
before you can use the port this way from an application. Also remember that
the I/O addresses are not allways the same. IBM laptops default to setting
the port on the old 'MDA' printer address, not the default LPT1 address.
Again verify in the CMOS that the port is set to 0x378.

Best Wishes

"Skybeginner" wrote in message
...
Is there a way to access the printer port using GWBASIC or Turbo
Pascal in XP?
There's too much overhead rewriting all the old Basic, Pascal
programs? I tried the unworkable utility called PortTalk already.

Look for 'allowio'. It should have been with PortTalk, as a 'demo' of
how to use PortTalk. You can run a program to access the LPT1 printer
port, by simply using:

allowio yourapplication.exe 0x378

You can use any port address you want (you gain access to the entire
'page' of 8bytes). You can even use /a to allow access to all ports,
but obviously this brings the caveat that you can then do a lot of
damage by accessing ports you shouldn't...
PortTalk itself is designed for authors who are writing applications
that want to use ports from inside NT/XP etc.. Allowio, is a simple
command line 'wrapper', to allow existing applications access to some
ports without any re-writing.

Best Wishes





  #6  
Old March 10th 04, 03:40 PM
Skybeginner
external usenet poster
 
Posts: n/a
Default OT - BASIC Interpreter

"Roger Hamlett" wrote in

Yes.
I have used it (and the Porttalk package itself), for dozens of
different applications with no problems. Are you sure you are setting
the port address correctly, _and_ that the port is configured
correctly. Remember that on most modern machines, the port will be
configured in the CMOS to EPP, not SPP. The EPP mode, uses DMA, and
extra high I/O addresses, and may not work for a program designed to
talk to an SPP port. Hence you must set the port to SPP in the CMOS
(and allow XP to find it again with these new settings), before you
can use the port this way from an application. Also remember that the
I/O addresses are not allways the same. IBM laptops default to setting
the port on the old 'MDA' printer address, not the default LPT1
address. Again verify in the CMOS that the port is set to 0x378.


It uses ECP and does include the 0x378 address.
I'll have to check if it can use SPP.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OT - BASIC Interpreter Adam Amateur Astronomy 5 March 7th 04 11:33 AM
I'm Writing Fiction about the Moon: Some Basic Questions! k2director Policy 45 January 19th 04 04:33 AM
Why not a basic but inexpensive American mount? Richard Amateur Astronomy 46 November 25th 03 11:46 AM


All times are GMT +1. The time now is 12:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 SpaceBanter.com.
The comments are property of their posters.