Solved

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

Posted on 2004-09-14
3
164 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
[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 Comments
 

Author Comment

by:bpfh
ID: 12072087
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
ID: 12073547
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
ID: 13984807
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month3 days, 19 hours left to enroll

630 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