Link to home
Start Free TrialLog in
Avatar of bpfh
bpfh

asked on

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

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
Avatar of bpfh
bpfh

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of ee_ai_construct
ee_ai_construct
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.