Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Registering MSCOMM32 on a 64-bit operating system

Posted on 2011-03-25
2
Medium Priority
?
7,725 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

782 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