Member Login
member
passwd
remember me on this computer.

- join now -

Search

Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
"For the man who has everything... Penicillin."
-- F. Borquin
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Interfacing Dept. department...
inpout32.dll & vb6 problem in Windows XP
PCs in Automation topic
advertisement
Posted by Abry on 18 February, 2004 - 12:12 pm
hi. I developed a program in visual basic 6(executable) using inpout32.dll for interfacing but it did not run on windows XP. I pasted inpout32.dll on windows\system or windows\system32\drivers but it still did not run. Im sure my program is fine because i have tested it on other operating systems and it worked fine. The error message was : runtime error '339' component 'COMDLG32.OCX'

Posted by Miguel on 21 February, 2004 - 12:24 pm
It seems to be a problem with the "common dialog" control and not with inpout32.
Miguel

Posted by charos on 21 February, 2004 - 8:27 pm
Send me a coppy of the program, Ill work on it and let you know whether any thing is wrong. A single line may have to be added to make it work fine. Some codes are also not compatible with some operating system versions. I'll let you know once I pass though the program.
Send the program to albincharos@hotmail.com

Posted by Rosendo on 22 February, 2004 - 4:51 pm
Hi! I am using this inpout32.dll with VB6 and using parallel port LPT1(with 8 LED's + limiting resistors) for my Computer Programming Class and
I didn't have any problem. I use the same program with a DIO-24 Card (Computer Boards) and again it worked fine. As some body says, you may have problems with the common dialog OCX.

Posted by Anonymous on 11 November, 2004 - 10:39 pm
can u send me the above programe. cos im looking for something like that.

Posted by Tom on 17 March, 2004 - 11:37 pm
goto http://www.logix4u.net/index.htm to get Windows XP version of "inpout32.dll"

Posted by BRigs on 2 February, 2006 - 3:29 am
Hello, I have recently discovered that the INPOUT32.dll does not work on windows XP running on FAT32 partition. But it will run on windows XP under NTFS parition. Hope this helps...

Posted by Gary H on 2 April, 2004 - 6:17 pm
Do you need to manually register the DLL in XP? Just a thought.

Posted by Anonymous on 16 April, 2004 - 1:57 pm
Hi. I was working today with inpout32.dll, and I faced a similar problem (the difference is that I was working with vc instead of vb). I tried to debug the code of the dll, and eventually solved the problem. DllMain function calls OpenDriver, which tries to open hwinterface.sys. If this file does not exists in C:\WINNT\system32\drivers, it tries to create it. It seems that under windows XP and NT, you can create a file under this folder only if you have administrator privileges.

Hence, the solution is to manually copy hwinterface.sys in C:\WINNT\system32\drivers, or to let your application to run at least for the first time with administrator privileges.

Posted by Wilson Madrid on 4 June, 2004 - 5:08 pm
The problem is caused by runtime error '339' component 'COMDLG32.OCX'

you need register el activex component with regsvr32 COMDLG32.OCX from the command line.

Posted by Brendan on 14 July, 2004 - 5:11 pm
I'm having the same problem, the dll doesn't fix any problems if anyone knows what the problem is please e-mail me. bluemaxdroid@hotmail.com

Posted by Anonymous on 7 January, 2005 - 6:28 pm
Hi,

I can use inpout32.DLL on windows XP. My e-mail ku999@thaimail.com

Posted by Anonymous on 17 August, 2004 - 1:27 pm
I want to know how to load this inpout32.dll.
Thanks in advance.

Posted by Ali on 31 August, 2004 - 12:31 am
I am also facing the same problem, inpout32.dll works fine in W2k but do have problems with XP.

Posted by Alex on 20 October, 2004 - 11:26 pm
Hi, I've a ASP problem with with inpout32.dll, in particular with hwinterface.ocx, I can't find anything about the use under ASP.

I use:
'line to call the obj
set para_port = server.createobject("HWINTERFACE.HwinterfaceCtrl.1")
line tu use (on which crash)
data_in = para_port.InPort(port_number)

The problem is I use only the firs line: Everything OK
On the secon line even if I use para_port.AboutBox()
I got always the same error:
(0x8000FFFF)
Errore irreparabile (I don't know ho to translate, and google doesn't help)

Thanks for interest.

Alex

Posted by PerkHouse on 2 October, 2007 - 2:03 am

I know this was 3 years ago, but I just started using the control and wanted to use it in an ASP page. To make a (very) long story short, I got it working.

It only takes a few small changes to the MFC code. However, to get the whole thing to (optionally) compile with Unicode enabled, it takes a few more changes to InpOut32drv.cpp or you'll get a bunch of casting errors.


hwinterfaceCtl.h
// Overrides
//{{AFX_VIRTUAL...
virtual void OnResetState...
//the following line makes the control work with ASP
virtual BOOL IsInvokeAllowed(DISPID dispid);

hwinterfaceCtl.cpp
CHwinterfaceCtrl::~CHwinterfaceCtrl()
{
Closedriver();
}

//this function makes the control work with ASP
BOOL CHwinterfaceCtrl::IsInvokeAllowed(DISPID)
{
return true;
}


That's all that's needed if you make sure you're compiling in ANSI and not Unicode. If you decide to make it a Unicode app, you'll need to add _T() around all string literals and change "char" types to TCHAR types. There may be a few other changes I made, but I don't remember right now and I'm on a different computer so I can't check.

Hope this helps!


Posted by Dvad78 on 18 February, 2005 - 5:10 pm
This is a simple error to correct, the program was written using a different version of the Common Dialog control. If you have the source code to the program the only thing you need to do is delete the common dialog control from the form and add it again (this will make it then use the version of the control from the system you are on). This is a common deployment problem for visual basic, my suggestion is to write your own save/open dialog instead of using the control.

Hope this helps,
dvad78@hotmail.com

Posted by Nimish on 3 May, 2008 - 5:29 pm
You have to not only paste inpout32.dll into system32 folder but also include inpout4.bas file in VB project.Refer this http://lcdinterfacing.googlepages.com/home

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!