Solved

Registering MSCOMM32 on a 64-bit operating system

Posted on 2011-03-25
2
7,062 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress
Suggested Courses

628 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