Solved

Registering MSCOMM32 on a 64-bit operating system

Posted on 2011-03-25
2
6,178 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is about my first experience with programming Arduino.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now