Solved

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

Posted on 2010-09-21
6
2,126 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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 …

815 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

9 Experts available now in Live!

Get 1:1 Help Now