Results 1 to 2 of 2

Thread: how to control and use ports

  1. #1
    haris-raheem
    Guest

    how to control and use ports

    i want to know about interfacing in vb with com and parallel ports

    how to determine a port no.

    i want both code and concepts

    can anyone tell me
    thanks

  2. #2
    Member
    Join Date
    Apr 2001
    Location
    Emden, Germany
    Posts
    63
    For Com port there is the "Microsoft Comm control" in visual basic. you could use that one also to scan the available serial ports with a request and check, what is connected.
    I do not know of a control for the parallel port, but it would definitely be useful. If you find, please let me know. Else I'll one day have to do it by myself. There must be some API calls...
    For the usual stuff with the printer port there is the Printer object and GDI functions, check it in MSDN.
    You can also open a channel with

    Open "lpt1" for output as channel
    print #channel, " This is a test!"
    close #channel
    WIN 2000 Prof. / WIN 98 / WIN 95, IE6.0, Mathematica 4.0
    Visual Studio Enterprise 6.0 sp5

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