Solved

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

Posted on 2004-09-14
3
162 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 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