Solved

ActiveX controls work on dev machine, crash IE on all others!

Posted on 2004-09-14
3
159 Views
Last Modified: 2010-05-02
Hi,

I am trying to develop a webpage-based activeX control.
On my development machine (Windows XP Home SP1, VB 6 SP6), I can run the ActiveX control from the VB IDE, or from the web page through the web server installed on my development machine, and everything seems to work correctly.

When I access the page containing the ActiveX control from another machine (Windows 98 SE with IE6 and Windows 2000 Pro SP4 with IE 6), after having authorised the installation and execution of the ActiveX (security set to low, all ActiveX options set to allow), Internet Explorer crashes with a reference to MSVBVM60.DLL... but I have the same version of this file on my machine (6.0.96.90) and on at least one of my Win2K test machines, but it still crashes...

One control tested referenced Microsoft Internet Transfer controls, and another test does not reference anything apart from the default controls when you start a new ActiveX control project.

Any ideas?

Cheers,
Daniel
0
Comment
Question by:bpfh
3 Comments
 

Author Comment

by:bpfh
Comment Utility
Problem solved:

After creating the ActiveX control, I then had to create a cab file for internet distribution via the VB Packaging and Deployment wizard.

From there, when I accessed the page containing the reference to the ActiveX, and set the source to be not the ActiveX .OCX file but the .CAB file from the P&D wizard, Internet Explorer installs the project .OCX, and several other dependancies from either the .CAB file of Microsoft's web site.

From there, everything went as planned, without crashing!

Cheers,
Daniel
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
Please read entire thread.  Asker solved or content important.
Closed, 200 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Moderator
0
 

Expert Comment

by:dcomsys
Comment Utility
I created an ActiveX Control with VB, and it loads fine with the run feature for debugging, but when I save the OCX file and package it, IE only recognizes its existance, but doesn't load it (it creates the image box with the picture of the document in the top-left corner, instead of creating it with the red X). It never goes any further then that.



When I package it I use the Internet Option, then I choose to include all files with this CAB, and the include the Page DLL.

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

18 Experts available now in Live!

Get 1:1 Help Now