CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Parallel Port Interfacing

    I am trying to access LPT1 port so that I can send data to the pins from 0 to 7(8 bit).
    How can I achieve this in VB5.0.
    The MSCOMM control only allows serial port interfacing.



  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Parallel Port Interfacing

    As you said the MSComm Control only allows serial port interfacing. In order to control your parallel port, the only solution is to use API calls, because there is NOT such a tool. In fact, the MSComm Control what is it doing, is to call API commands. ;-)

    Michael Vlastos
    Company MODUS SA
    Development Department
    Athens, Greece
    Tel: +3-01-9414900

  3. #3
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: Parallel Port Interfacing

    Thanks a lot for your answer.I would appreciate if you could please point out the relevant API and how touse it since I have already

  4. #4
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Parallel Port Interfacing

    There is a INPOUT32.DLL out there on net. Download it and then you can easily use two commands. I think these are: INP and OUT. I used it a long time ago and don't remember well... If you don't find this dll, email me to send you by email...

    Michael Vlastos
    Company MODUS SA
    Development Department
    Athens, Greece
    Tel: +3-01-9414900

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured