Solved

Registering MSCOMM32 on a 64-bit operating system

Posted on 2011-03-25
2
6,472 Views
Last Modified: 2012-05-11
Hi,

I have a program written in VB6 which works perfectly well on all my development machines which run XP / O2k3 / VB6. However I am trying to get it to run on a system running MS Small Business Server 2008 (64-bit) and am having trouble registering mscomm32.ocx

I have copied the files mscomm32.ocx and mswinsck.ocx from an XP machine. When I run the command "regsvr32.exe mscomm32.ocx" I get the following error message

The module "mscomm32.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.

I get an identical message when I try to register mswinsck.ocx

Can anyone advise me how I can register these or obtain versions of these files which will work on this system.

Thank you
Darren
0
Comment
Question by:daz84
2 Comments
 
LVL 16

Accepted Solution

by:
ToddBeaulieu earned 500 total points
ID: 35216338
You're running the 64 bit version of regsvr32 (ironic, huh?).

You need to run the 32 bit version, which is here:

%SystemRoot%\Syswow64 folder.

For example, type the following commands to register the DLL:
cd \windows\syswow64
regsvr32 c:\filename.dll
0
 
LVL 2

Author Comment

by:daz84
ID: 35216564
You, Sir, are a genius. Thank you!

The ocx's registered perfectly but I now have an unrelated issue with wmp.dll

I do have a control which uses wmp but I'm going to disable it now and see if my program runs and uses successfully mscomm successfully.

Back shortly...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question