Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem with parallel port programming file io.dll 2002 Posted by Diwakar Bista on 14 Mar 2005 at 1:23 AM
This message was edited by Diwakar Bista at 2005-3-15 0:57:24

I downloaded the file io.dll for programming the parallel port
But I am finding non of it's command working
like I tried

Private Declare Sub SetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte)


Private Sub Command1_Click()
Call SetPortBit(378, 2)
End Sub

Is there any thing else that i can do or this dll doesn't work in Win XP ?
So please do send me the command syntax if mine is wrong or any information which you think will be helpful for me.


Report
Re: Problem with parallel port programming file io.dll 2002 Posted by BitByBit_Thor on 15 Mar 2005 at 11:00 AM
: This message was edited by Diwakar Bista at 2005-3-15 0:57:24

: I downloaded the file io.dll for programming the parallel port
: But I am finding non of it's command working
: like I tried
:
: Private Declare Sub SetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte)
:
:
: Private Sub Command1_Click()
: Call SetPortBit(378, 2)
: End Sub
:
: Is there any thing else that i can do or this dll doesn't work in Win XP ?
: So please do send me the command syntax if mine is wrong or any information which you think will be helpful for me.
:
:
:

Is the IO.dll in the same directory as the EXE file? (NOTE: In the development enironment it might be a different directory). If not, you need to register it. This would typically give an error compiling if this is not the case.
If the program does compile, are you sure the IO.dll does not work? It might just be that you can't see the result.

Greets...
Richard

Report
Re: Problem with parallel port programming file io.dll 2002 Posted by mpicv on 13 Feb 2011 at 5:20 PM
378 is hex number, should be declare &H378




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.