|
Home > Archive > Programming with dBASE > February 2006 > Parallel port
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Gilles Delagneau 2006-01-29, 3:23 am |
| Hello,
I need to program A0,A1 and A2 register of the parallel port to drive external machine. I would like to do that with dBase Plus 2.6 (b1899) under Windows 98. I don't know anything about that.
Is there some people that can help me? In advance thank you.
| |
| Ivar B. Jessen 2006-01-29, 7:23 am |
| On Sun, 29 Jan 2006 04:26:03 -0500, in dbase.programming,
Subject: Parallel port,
Message-ID: <tDSWGYLJGHA.1984@news-server>,
Gilles Delagneau <gdelagneau@sagai-systemes.fr> wrote:>I need to program A0,A1
and A2 register of the parallel port to drive external machine. I would like to
do that with dBase Plus 2.6 (b1899) under Windows 98. I don't know anything
about that.
>Is there some people that can help me? In advance thank you.
Search google for a third party program named 'TvicPort'. It has an activeX and
a dll. I prefer the dll which is very simple to use with Plus 2.21.
Ivar B. Jessen
| |
| Simone Bartoccioni 2006-01-30, 7:23 am |
| I use dlportio; It's a simple dll to read or write I/O registers like the
parallel port.
Ciao
Simone
"Gilles Delagneau" <gdelagneau@sagai-systemes.fr> ha scritto nel messaggio
news:tDSWGYLJGHA.1984@news-server...
> Hello,
> I need to program A0,A1 and A2 register of the parallel port to drive
> external machine. I would like to do that with dBase Plus 2.6 (b1899)
> under Windows 98. I don't know anything about that.
> Is there some people that can help me? In advance thank you.
| |
| Gilles Delagneau 2006-02-10, 3:23 am |
| Simone Bartoccioni <mediabyte AT tiscali DOT it> Wrote:
> I use dlportio; It's a simple dll to read or write I/O registers like the
> parallel port.
>
> Ciao
> Simone
>
>
> "Gilles Delagneau" <gdelagneau@sagai-systemes.fr> ha scritto nel messaggio
> news:tDSWGYLJGHA.1984@news-server...
>
>
Thank you, Simone for this dll.
Just a problem, there is no documentation or no "How to use it" an I ave no experience in this subject. With dBase, how we use it, what kind of command can we use. I you have a sample program to illustrate the use of dlportio, it will be welcome.
In adavance, thanks.
Gilles
| |
| Simone Bartoccioni 2006-02-10, 7:23 am |
| extern CINT DlPortReadPortUshort
(CLONG) dlportio.dll
extern CINT DlPortWritePortUshor
t(CLONG, CINT) dlportio.dll
//Write the LPT1 register
DlPortWritePortUshor
t(888,255)
//Read the LPT1 register
? bitand(DlPortReadPor
tUshort(889),255)
Ciao
Simone
"Gilles Delagneau" <gdelagneau@sagai-systemes.fr> ha scritto nel messaggio
news:LFKQG6gLGHA.592@news-server...
> Simone Bartoccioni <mediabyte AT tiscali DOT it> Wrote:
>
> Thank you, Simone for this dll.
> Just a problem, there is no documentation or no "How to use it" an I ave
> no experience in this subject. With dBase, how we use it, what kind of
> command can we use. I you have a sample program to illustrate the use of
> dlportio, it will be welcome.
> In adavance, thanks.
> Gilles
| |
| Gilles Delagneau 2006-02-10, 9:23 am |
| Simone Bartoccioni <mediabyte AT tiscali DOT it> Wrote:
> extern CINT DlPortReadPortUshort
(CLONG) dlportio.dll
> extern CINT DlPortWritePortUshor
t(CLONG, CINT) dlportio.dll
>
> //Write the LPT1 register
> DlPortWritePortUshor
t(888,255)
>
> //Read the LPT1 register
> ? bitand(DlPortReadPor
tUshort(889),255)
>
> Ciao
> Simone
>
>
>
> "Gilles Delagneau" <gdelagneau@sagai-systemes.fr> ha scritto nel messaggio
> news:LFKQG6gLGHA.592@news-server...
>
> Exume me, Simone but I have an other problem (I told you "I ignore complety these things) I wrote this sample program :
---------------------------------------------
clear all
clear
extern CINT D|PortReadPortUshort
(CLONG) dlportio.dll
extern CINT D|PortWritePortUshor
t(CLONG,CINT) dlportio.dll
D|PortWritePortUshor
t(888,255)
---------------------------------------------
but when I want to execute it, I have the followind message :
line 4 - Somethings is missing Expecting: (
I done some tries with an "(" but nothing changed.
I use the last version of dBase
Thanks and best regards from Bordeaux (France) - Gilles
| |
| Gilles Delagneau 2006-02-10, 9:23 am |
| Gilles Delagneau Wrote:
> Simone Bartoccioni <mediabyte AT tiscali DOT it> Wrote:
>
> ---------------------------------------------
> clear all
> clear
>
> extern CINT D|PortReadPortUshort
(CLONG) dlportio.dll
> extern CINT D|PortWritePortUshor
t(CLONG,CINT) dlportio.dll
>
> D|PortWritePortUshor
t(888,255)
> ---------------------------------------------
> but when I want to execute it, I have the followind message :
> line 4 - Somethings is missing Expecting: (
> I done some tries with an "(" but nothing changed.
> I use the last version of dBase
> Thanks and best regards from Bordeaux (France) - Gilles
Hello Simone,
Forget what I say previously, I confuse | (vertical bar) and l ( letter "l"). It's run findly for my application. Thanks you very much for your assistance and so long on dBase
Gilles
| |
| Simone Bartoccioni 2006-02-10, 11:23 am |
| ;)
Ciao!
Simone
"Gilles Delagneau" < gdelagneau@sagai_sys
temes.fr> ha scritto nel messaggio
news:egWRITlLGHA.1152@news-server...
> Gilles Delagneau Wrote:
>
>
> Hello Simone,
>
> Forget what I say previously, I confuse | (vertical bar) and l ( letter
> "l"). It's run findly for my application. Thanks you very much for your
> assistance and so long on dBase
> Gilles
|
|
|
|
|