Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Parallel port control with Excel 2007 VB and Vista

I am trying to write a Excel 2007 VB program to control my parallel
port. I want to be able to turn individual pins off and on. I did this
in the previous version of Excel and Win XP but I have not been able
to find any driver/dll that works with Vista and Excel 2007. I have
found inpout32.dll but it does not seem to work with Vista. There are
a lot of sites saying it will but all I get is a error. I can not even
register it. Not sure if it needs registered or not though. I have
done all the admin rights and things to get it to work but it did not
help.
Does any one know of another free (no trial ware) driver or control
that would work or how to get a vista compatible version of
inpout32.dll to install and work?

I would appreciate any help someone can give me.

Thanks
Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Parallel port control with Excel 2007 VB and Vista

inpout32.dll is designed to work with a 32 bit operating system like XP.
vista is 64 bits so you have to make sure you are declaring your variables
properly. did the inpout32.dll come with the vista operating system? then
it should work provided you declare all the variables with the proper size.

See this webpage

http://msdn.microsoft.com/en-us/libr...acyhard_topic3


the most interesting part of the webpage is this section

Unfortunately, for other parallel port devices you are left looking for the
local driver and calling the Win32 API again. If you reference the IO.DLL
library in your application (it is a COM library, so it will generate an
Interop component), you can read and write to non-printer devices on the
parallel port.

Private Declare Sub PortWordOut Lib "IO.DLL" (ByVal Port As Integer, _
ByVal Data As Integer)
PortWordOut(23, TextBox1.Text)

---------------------------------------------------------------------------------
I'm wondering if the port number have changed.
--------------------------------------------------------------------------------

"Scott" wrote:

I am trying to write a Excel 2007 VB program to control my parallel
port. I want to be able to turn individual pins off and on. I did this
in the previous version of Excel and Win XP but I have not been able
to find any driver/dll that works with Vista and Excel 2007. I have
found inpout32.dll but it does not seem to work with Vista. There are
a lot of sites saying it will but all I get is a error. I can not even
register it. Not sure if it needs registered or not though. I have
done all the admin rights and things to get it to work but it did not
help.
Does any one know of another free (no trial ware) driver or control
that would work or how to get a vista compatible version of
inpout32.dll to install and work?

I would appreciate any help someone can give me.

Thanks
Scott

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 and Office 2007 stink (so does Vista) P. U. Excel Discussion (Misc queries) 1 March 25th 09 05:21 PM
Help using dll with excel 2007 and vista 64 gtslabs Excel Programming 0 February 13th 09 05:33 PM
.NET RTD on Excel 2007 & Vista Con[_2_] Excel Worksheet Functions 0 February 13th 09 01:13 PM
vista and excel 2007 maran Excel Discussion (Misc queries) 0 April 28th 08 11:30 AM
Vista bug (?) regarding Excel 2007 Perry Excel Programming 0 February 18th 07 03:45 PM


All times are GMT +1. The time now is 02:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"