Web Hosting, Design, & Coding forum

General discussion

Import DLL in Visual Basic

by Trentonx / March 19, 2007 4:41 AM PDT

While this has nothing to do with Web scripting, it seems the best place.
I am trying to control stepper motors using a Visual Basic program. Since Visual Basic cannot access the parallel port, I have to use a DLL. So the questions are: Where can I get a DLL to access the parallel port and How can I use it in Visual Basic?

Any help is appreciated.

Discussion is locked
You are posting a reply to: Import DLL in Visual Basic
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Import DLL in Visual Basic
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Extract and link.
by R. Proffitt Forum moderator / March 19, 2007 4:44 AM PDT

"
For Windows 95/98/NT/2000/Me/Xp

*

Inpout32.dll is compatible with my Win9x inpout32.dll (below) but works under all Windows editions from Win95/98/Me to WinNT/2000/XP. For Windows NT etc., a kernel mode device driver is embedded in the DLL in binary form. Freeware. A big thank you to LOGIX4U for coming up with this and making it available. For testing inpout32.dll in Visual Basic 6, see my example program Test_inpout32_vb6.zip. For testing inpout32.dll in Visual Basic .NET, see my example program Test_inpout32_vbdotnet.zip.
"
From http://www.lvr.com/parport.htm

Collapse -
Extract? Link?
by Trentonx / March 22, 2007 2:41 AM PDT
In reply to: Extract and link.

So I downloaded the inpout32.dll and placed it in the system folder. I tried to add a reference to the file, but the program said it couldn't be added because it was not a valid assembly or COM component. What's the code to link or import a DLL into a program?

Collapse -
Seems not going to work for you.
by R. Proffitt Forum moderator / March 22, 2007 2:57 AM PDT
In reply to: Extract? Link?

Sorry but it worked fine for me. Good luck with finding an alternative.

Bob

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?