mscomm32.ocx : file is missing or invalid

Hi when installing a visual basic 6 project in Vista 32/64, the process completes fine but when i try to execute the file after i get the error:
"component 'mscomm32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid".

I have made sure i have the control in the correct place and that it is registered fine aswell. Any ideas?

[379 byte] By [YimTaka] at [2008-2-27]
# 1

Hi,

This could be a VISTA problem!!

Having read this >>

http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx

it appears to suggest it is a VB6 component, if so then re-install VB6.

Otherwise find the vendor for the file.

See also.>>

http://search.microsoft.com/results.aspx?mkt=en-US&setlang=en-US&q=mscomm32.ocx

http://www.google.co.uk/search?hl=en&ie=ISO-8859-1&q=mscomm32.ocx&btnG=Search&meta=

http://www.google.co.uk/search?hl=en&ie=ISO-8859-1&q=mscomm32.ocx+vendor&meta=

Regards,

S_DS

Spidermans_DarkSide at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 2

YimTaka,

When installing a Visual Basic 6.0 application on Vista, you need to be an admin and run elevated (right click on the exe or shortcut and select "Run as Admin"). You'll need to do this when installing the IDE and SP6 on your box as well.

When running VB6 applications on Vista, you'll need to run under these settings (Admin/Elevated).

Please let me know if you are having issues installing/running under these conditions.

Thanks,

Chris Mayo

Visual Basic Program Manager

ChrisMayo-MSFT at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 3
Hi All,
I had the same problem.
I found a workaround: if I don't run my application as an administrator (but still using an administrator account), it works fine.
The problem is that I need to run it as an administrator for other components of my project to work...
Any idea how I can get mscomm32.ocx to work when I run my app as an administrator?
I find all this very confusing.

Thanks.

Maryta at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 4

I believe this is a Vista bug.

I had the same problem from a customer who installed my program on his brand new Toshiba with Vista Home. Doing the regsvr32 thing did not get it to work. Running Adminitrator privilege and WinXP compatibility also did not work.

The solution which is very surprising and weird, do not make sense at all is to UNREGISTER the OCXs. I managed to solve my customer problem with the steps I found in this Intuit TurboTax support forum. The actual solution to unregister is found in page 4 of this thread.

http://forums.turbotax.com/intuit/board/message?board.id=installupdate06&message.id=1307&view=by_date_ascending&page=1

As programmers, our immediate reaction would be to register the OCXs. Won't work.

cskcsk at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 5

Hi Chris,

I have (as others) have encountered similar problems (error 339). Please see post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1499007&SiteID=1

I have tested my application which uses a dcube3.ocx - installed with Installshield. It works well under Windows Vista Hoe Premium - but I get a error 339 when I run it under Vista Enterprise. Angelo discovered that using the msiexec /i <MSI file path> ALLUSERS=TRUE resolved his 339 problem.

In general how do I use the msiexec command to install an application with ALLUSERS=TRUE?

Also, why would the installtion work on Vista Home Premium and not Vista Enterprise?

Regards,

David Reeves

dreeves at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 6

Hi,

I've never heard of the Enterprise Edition is this another name for what is sold as the Business Edition here in the UK?

I only know of;

  • HOME

  • HOME PREMIUM

  • BUSINESS

  • ULTIMATE

editions of Vista.

Regards,

S_DS

# 7

"

I've never heard of the Enterprise Edition is this another name for what is sold as the Business Edition here in the UK?"

Well add Vista Enterise to your list:

http://www.microsoft.com/windows/products/windowsvista/editions/enterprise/default.mspx

dreeves at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 8

For me I needed simply to register the file under the tools menu of access (2K). That may be too basic to say in this forum but I figured I'd throw it out there.

Regulus Black

onlinedrugs at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...