Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: joe Degorio
  Where is joe Degorio?
 Tacloban City
 Philippines
 joe Degorio
 To: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 Tags
Subject: RE: how to use io.dll
Thread ID: 112172 Message ID: 112276 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Tuesday, November 07, 2006 1:15:38 AM         
   


> > > > Hello again everyone,
> > > > Does anyone knows where i can free download an io.ocx? And has anyone tried to make a program using the parallel port? Can you share a code?
> > > > Please help...:)
> > > >
> > > > Thanks in advance,
> > > > joe

> > >
> > >
> > > Joe,
> > >
> > > for io.dll you could try http://www.geekhideout.com/iodll.shtml
> > >
> > > regards,
> >
> >
> > >
> > > Koen

> >
> >
> > Good am Sir,
> > I downloaded the io.dll from the geekhideout, but once i try to add the control, I got an error (mesagebox with an exclamation point icon). And the io.dll is not found on the list of OLEs. Is tthere a problem on how I add the io.dll? Please help....:)
> >
> >
> > Joe

>
> What you should do is declare the functions in the io.dll, that way you can use them directly in the code.
> Here's the list of declare statements, translated in VFP.
>
>
Declare PortOut in IO.DLL Integer nPort,Integer nData
> Declare PortWordOut in IO.DLL  Integer nPort,Integer nData
> Declare PortDWordOut in IO.DLL  Integer nPort,Integer nData
> Declare Integer PortIn Lib in IO.DLL  Integer nPort
> Declare Integer PortWordIn in IO.DLL Integer nPort
> Declare Integer PortDWordIn in IO.DLL Integer nPort
> Declare SetPortBit in IO.DLL Integer nPort, Integer nBit
> Declare ClrPortBit in IO.DLL Integer nPort, Integer nBit
> Declare NotPortBit in IO.DLL Integer nPort, Integer nBit
> Declare Logical GetPortBit in IO.DLL Integer nPort, Integer nBit
> Declare Logical RightPortShift in IO.DLL Integer nPort, Logical lValue
> Declare Logical LeftPortShift in IO.DLL Integer nPort, Logical lValue
> Declare Logical IsDriverInstalled in IO.DLL

>
> Look on geekhideout.com for info on the functions.
> BTW, seems like an interesting library. I might study a bit on this, after I'm back from Frankfurt that is (of course).
>
> Boudewijn LutgeĀ®ink
> The attitude of "An eye for an eye and a tooth for a tooth" will make this world toothless and blind (Ghandi)



Hi Sir,
To be honest I'm not sure if I did it right, I put the Declaration in the init event of a form , but I got a syntax error pointing to "Declare Integer PortIn Lib in IO.DLL Integer nPort". I used the same io.dll in VB6 and just follow the guide in adding it to form and declare it as instructed and it worked. But I want VFP to be my main development tool. kindly extend your help sir on this....

thanks

ENTIRE THREAD

how to use io.dll Posted by joe Degorio @ 11/5/2006 2:57:36 AM
RE: how to use io.dll Posted by Koen Piller @ 11/5/2006 8:45:45 PM
RE: how to use io.dll Posted by joe Degorio @ 11/6/2006 1:27:54 AM
RE: how to use io.dll Posted by Boudewijn Lutgerink @ 11/6/2006 11:45:49 AM
RE: how to use io.dll Posted by joe Degorio @ 11/7/2006 1:15:38 AM
RE: how to use io.dll Posted by Boudewijn Lutgerink @ 11/7/2006 8:08:29 AM
RE: how to use io.dll Posted by joe Degorio @ 11/8/2006 5:57:24 AM
RE: how to use io.dll Posted by Bernard Bout @ 11/8/2006 8:14:45 AM
RE: how to use io.dll Posted by Koen Piller @ 11/9/2006 1:30:16 PM
RE: how to use io.dll Posted by Bernard Bout @ 11/10/2006 5:36:04 AM