+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 20 of 26
  1. #1
    Member level 2
    Points: 2,390, Level: 11

    Join Date
    Dec 2002
    Posts
    50
    Helped
    0 / 0
    Points
    2,390
    Level
    11

    vb6 to parallel port

    Any body knows how to access parallel port in vb6 (for win98 and xp)

    tnx

  2. #2
    Junior Member level 3
    Points: 1,975, Level: 10

    Join Date
    Jul 2002
    Posts
    27
    Helped
    0 / 0
    Points
    1,975
    Level
    10

    port32.ocx xp

    In the 32 bits operating system (like NT, 2000 & XP) you cannot access directly. You need a driver. There is a generic driver called "userport" (google it). You may need also to code assembly routines for input and output ports. The userport package come with examples.

    M&Mfuria



  3. #3
    Guest

    write code in vb6 for parallel ports

    look for jan axelson's parallel port complete book. or go to his site at www.lvr.com 8)



  4. #4
    Newbie level 6
    Points: 2,115, Level: 10

    Join Date
    Nov 2001
    Posts
    11
    Helped
    0 / 0
    Points
    2,115
    Level
    10

    how to print com port in vb6

    Hi

    I have been using Richard Grier's OCX and it is simple and works well

    http://ourworld.compuserve.com/homep...ier/IO_OCX.htm

    Emax



    •   Alt21st May 2003, 18:19

      advertising

        
       

  5. #5
    Member level 5
    Points: 2,566, Level: 11

    Join Date
    Jan 2003
    Posts
    84
    Helped
    2 / 2
    Points
    2,566
    Level
    11

    parallel port xp vb6

    Another way to acces the parallel port in VB6:

    Create a DLL in Visual C++ and import this DLL in your VB program

    More information about DLL's: www.boondog.com
    Look for "Visual Basic (DLL's) and PC Interfacing" under the Tutorial link.

    I know it will work under Win98 but I'm not sure if it will work under WinXP.

    Greetz Joris



  6. #6
    tgq
    tgq is offline
    Full Member level 5
    Points: 6,719, Level: 19

    Join Date
    Jul 2002
    Posts
    286
    Helped
    7 / 7
    Points
    6,719
    Level
    19

    project using serial port

    single DLLs dont work with protected mode OS like NT, W2K or XP
    you must use a driver *.sys AND a DLL
    asm routines no more work with such OS, dont loose time only to have a nice Win msg about protected mode
    check http://www.driverlinx.com/Software_P...reproducts.htm



  7. #7
    Junior Member level 3
    Points: 1,975, Level: 10

    Join Date
    Jul 2002
    Posts
    27
    Helped
    0 / 0
    Points
    1,975
    Level
    10

    vb6 print to parallel port

    Userport is a generic driver (.sys) that use some special undocumented function calls in windows to grant access to any port to any user. All you need is run the executable once. You need administrator rights to install.

    No especial DLL is needed. You CAN use normal assembly instructions (like in the examples), that can be inside your code in VB or in an external DLL.

    I have used it many times in NT, 2000 and XP with no problems.

    The main drawback is that you have too much power :) so you can, for example, change bits in parallel port during a print session!



  8. #8
    Advanced Member level 3
    Points: 6,852, Level: 19
    SphinX's Avatar
    Join Date
    Jan 2002
    Location
    EGYPT
    Posts
    822
    Helped
    56 / 56
    Points
    6,852
    Level
    19

    port95nt.exe conflicts

    Hi,

    Read EPE Mag. AUGUST 2001.
    There is a simple project for parallel interface using VB .

    PM if you don't have it.

    Bye



  9. #9
    Junior Member level 2
    Points: 1,944, Level: 10

    Join Date
    Feb 2003
    Location
    VIETNAM
    Posts
    22
    Helped
    1 / 1
    Points
    1,944
    Level
    10

    open printer port + vb 6

    To use I/O ports in Windows NT/2000/XP. Pls Visit
    www.beyondlogic.org/porttalk/porttalk.htm.



  10. #10
    Newbie level 2
    Points: 1,742, Level: 9

    Join Date
    May 2003
    Posts
    2
    Helped
    0 / 0
    Points
    1,742
    Level
    9

    visual basic 6 ecp ocx

    HI,
    I want to develope a home automation project using serial port, if any one have material relating this, send me at
    inam_125@hotmail.com
    with thanks



    •   Alt10th July 2003, 21:46

      advertising

        
       

  11. #11
    Newbie level 4
    Points: 1,662, Level: 9

    Join Date
    Dec 2003
    Posts
    6
    Helped
    3 / 3
    Points
    1,662
    Level
    9

    parallel port+xp+visual basic+userport+port32

    You can use the "port95nt.exe". Google it.

    It is a driver that can be user under Win 95, 98, NT, 2000 and XP.

    There are examples programs in C++ and VB.



  12. #12
    Full Member level 2
    Points: 3,314, Level: 13

    Join Date
    Oct 2003
    Location
    Argentina
    Posts
    122
    Helped
    2 / 2
    Points
    3,314
    Level
    13

    open lpt port vb6

    I use a driver called WINIO. It works under windows 98 and XP

    Now I need something from you guys.
    first, I need to know at which speed the parallel port works.
    I wanted to measure that speed with visual basic (because i need to use that language and I need to use the port.) but I dont have a wait routine with resolution in time (for ex: i need to wait 50 us os .1ms)

    Do you have an open source code to do that?



  13. #13
    Full Member level 4
    Points: 5,018, Level: 16

    Join Date
    Dec 1999
    Location
    Pakistan
    Posts
    236
    Helped
    13 / 13
    Points
    5,018
    Level
    16

    send bits to parallel port

    hi,
    I think such speed with normal LPT not possible. With EPP/ECP and DMA function it may be...



  14. #14
    Full Member level 2
    Points: 3,314, Level: 13

    Join Date
    Oct 2003
    Location
    Argentina
    Posts
    122
    Helped
    2 / 2
    Points
    3,314
    Level
    13

    access parallel port vb under windowsxp

    Thanks sadat007 !

    Ok. O would like to know how to use those modes of operation with visual basic.

    However, I would like an accurate delay routine in VB.

    Thanks !



  15. #15
    Full Member level 4
    Points: 5,018, Level: 16

    Join Date
    Dec 1999
    Location
    Pakistan
    Posts
    236
    Helped
    13 / 13
    Points
    5,018
    Level
    16

    visual basic 6.0 parallel port ex 02

    As much I know not possible in VB... May be in VC but no experience of VC I have.
    Sorry :?



  16. #16
    Junior Member level 3
    Points: 1,884, Level: 10

    Join Date
    Nov 2003
    Posts
    30
    Helped
    1 / 1
    Points
    1,884
    Level
    10

    how to access lpt port in vb codings]

    Quote Originally Posted by Bukitoo
    However, I would like an accurate delay routine in VB.

    Thanks !
    in a module write,
    Code:
    Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    in your form within your code

    Code:
    ' Suspend  program execution for 1 second (1000 milliseconds)
     Sleep 1000
    this is the procedure in Vb to delay your program by Milliseconds,

    it is just accurate and it won't hang up machine like for loops and stuff.

    regards,

    Sherif.



  17. #17
    Full Member level 2
    Points: 3,314, Level: 13

    Join Date
    Oct 2003
    Location
    Argentina
    Posts
    122
    Helped
    2 / 2
    Points
    3,314
    Level
    13

    vb6 + read parallel port

    Thanks sherif12 !

    I red in a book that Sleep causes all the programs hang up, not oly the one who cares for me.

    Is that true ?



  18. #18
    Junior Member level 3
    Points: 1,884, Level: 10

    Join Date
    Nov 2003
    Posts
    30
    Helped
    1 / 1
    Points
    1,884
    Level
    10

    lpt3 vb win95io.dll

    nope @ all,

    i tried it in many program, all what it do is hanging the procedure or function or sub it is in, differing from for loops which hang the whole machine..

    anyway, don't beleive me and try it yourself

    thanks,

    Sherif.



  19. #19
    Newbie level 3
    Points: 1,698, Level: 9

    Join Date
    Dec 2003
    Posts
    3
    Helped
    0 / 0
    Points
    1,698
    Level
    9

    vb6 parallel port interfacing samples

    Quote Originally Posted by leilarazavi2000
    Any body knows how to access parallel port in vb6 (for win98 and xp)

    tnx
    :D
    I did a program for to send bits to a paralell port .. I you want I ll send source code... in this moment i cant because im in the work.

    Bye
    Christian



  20. #20
    Junior Member level 3
    Points: 1,767, Level: 9

    Join Date
    Dec 2003
    Posts
    28
    Helped
    0 / 0
    Points
    1,767
    Level
    9

    write to a port with vb 6 codes

    Try this program:



+ Post New Thread
Please login
Page 1 of 2 12 LastLast