Solved

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

Posted on 2010-09-21
6
2,115 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

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

In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

760 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

21 Experts available now in Live!

Get 1:1 Help Now