CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    12

    Post parallel port programming in visual basic 6

    hi
    i want to know how can i wirite program for turning on and off my LEDs
    by writing application in visual basic 6 through parallel port

  2. #2
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: parallel port programming in visual basic 6

    To talk to the parallel port you can do the following (it assumes there is some device like a printer attached)


    Open "LPT1:" For Output Access Write As #1
    Print #1, Chr(27); Chr(107); Chr(3); 'font
    Print #1, Chr(27); Chr(77); 'pitch 12
    Print #1, Chr(27); Chr(120); Chr(1); 'letter quality
    Print #1, Text1.Text
    Close #1

  3. #3
    Join Date
    Dec 2002
    Posts
    55

    Re: parallel port programming in visual basic 6

    check out the info here:

    http://www.geekhideout.com/iodll.shtml

    io.dll is very cool

  4. #4
    Join Date
    Jun 2005
    Posts
    178

    Exclamation Re: parallel port programming in visual basic 6

    Is there any straight forward method to do this in Visual C++ 6.0 also..??

    let me know..

  5. #5
    Join Date
    Nov 2005
    Posts
    1

    Red face Re: parallel port programming in visual basic 6

    hi there..i was just wondring..coz we're in the process of doing our design project "pc controlled switch system for home" and were planning to use visual basic and of course the parallel port..to control appliances..in the project we'll be using an interfacing device and a special type of switch...and there...can u help me..coz i still have no idea in doing this..how to program in parallel port..and do u think its cheaper than using wireless..
    thanks...

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