Solved

How to use 32-bit Active X in 64-bit IE?

Posted on 2010-09-21
6
2,144 Views
Last Modified: 2013-11-29
I have an old VB6 ActiveX dll. I registered it with regsvr32.exe in the Windows\SysWOW64 directory. When I use the control in 32-bit IE, it works fine. It gives an "Automation server cannot create object" error in 64-bit IE. How can I fix this?
0
Comment
Question by:tkroll71
[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
  • 3
  • 2
6 Comments
 

Author Comment

by:tkroll71
ID: 33729214
Forgot to mention this is on a Win 7 x64 machine.
0
 

Accepted Solution

by:
prabhatia earned 50 total points
ID: 33732987
For an OCX to be download on a 64 bit IE it needs to be compiled for 64 bit platform.

If you browse the Internet with 64-bit Internet Explorer 6.0 on a 64-bit OS , and you view a Web page that contains a  32-bit ActiveX control, you are prompted to install the ActiveX control. When  you attempt to install the ActiveX control, the installation process is  unsuccessful. Although the activeX control acts like it is being installed, is  not installed.

64 bit OCX can be registered with regsvr32.exe in system32 folder not in Syswow64.

You need to compile that ActiveX dll for 64 bit platform.

Again one more thing that 64 bit ActiveX dll will not work on 32 bit IE.

So in your application you must have a JavaScript code to identify the IE (32 bit or 64 bit). And according to load the Active X.
0
 

Author Comment

by:tkroll71
ID: 33735643
Thanks for the response.

Interesting. This is contrary to what I read that says a 32-bit dll works fine on 64-bit systems running under the WOW64 layer, which is designed exactly for this purpose.
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

Author Closing Comment

by:tkroll71
ID: 33736601
Not what I wanted to hear but nonetheless correct. Thank you.
0
 

Expert Comment

by:prabhatia
ID: 33741950
32 bit dlls works fine on a 64 bit machine if loaded by a 32 bit application.
As your OCX is 32 bit and IE is 64 bit application, it wont work.
0
 
LVL 9

Expert Comment

by:Sar1973
ID: 38053079
Is this test enough to identify the case in which JS won't work?
var myNVGTST=navigator.userAgent.indexOf("MSIE")>=0 && navigator.cpuClass.indexOf("64")>=0 && navigator.platform.indexOf("32")>=0;
0

Featured Post

Independent Software Vendors: 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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 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