Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Debugging an activex CAB

Posted on 2003-02-24
6
Medium Priority
?
973 Views
Last Modified: 2008-02-20
I have a problematic ActiveX cab on my hands. The activex works and tests correctly when used in a VB application. However when using the object tag, pointing at a CAB file created with the packaging and deployment wizard, the activex will not initialize.

I'm pretty sure it has something a component not downloading and installing via IE. What lead s me to this conclusion is the following:

1) If I use an MSI created with Visual Studio Installer, and install the activex onto a computer and then access the same web page (cab), the borwser shows the correct components and the app works perfectly.

2) The OCX contains 5 controls, which are then aggreegated into another control, which is the control I cannot initialize. As a test, I took the htm file generated by the packaging and deployment wizard, which contains an object tag and clsid for all custom controls and classes in the ocx and viewed each object seperately. 4 of the 5 controls are visible in IE using the cab file on fresh (no msi) machine. This leads me to belive the the "final" control is not visible because of the problematic 5th control.

I'm not neccessarily looking for a solution to the problem. The info I seek is how do I go about debugging this situation? How can I tell what components are failing to Down load and install in this 5th control when run in IE. And possibly, why?

Thanks for your help guys.
0
Comment
Question by:FatJoey
5 Comments
 
LVL 1

Expert Comment

by:NicolNghia
ID: 8013388
Hi FatJoey,

I have a small idea and hope that will help you:
As you know, when IE download the components, it will install these components into the Windows\System folder (Windows\System32 folder on Windows NT). And your ActiveX work OK if all of that are downloaded successfully.
To check that:
1. Use the tool 'Depends' (in Visual Studio Tools) to list all components used by your ActiveX.
2. Check if these components are available in the 'Windows\System' folder.

And you will find if any miss component.

Good luck,
0
 

Author Comment

by:FatJoey
ID: 8017744
NicolNGhia,

I took a look at his and I noticed everything listed in depends was present in system32. Also, I noticed that depends does not show VB references only system dll for API calls. For example I have reference to msxml3.dll in my project and this is required to run. Depends does not show this or any other reference. Still looking...

Joe

0
 

Author Comment

by:FatJoey
ID: 8028105
I figured it out. I put a logging statement in every method of the entire ocx that was dieing. Turns out, that there was some conflicting ocx on the boxes I tried to view it on. Thanks though guys
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9350238
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10457073
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Why WooCommerce is one of the majorly favored choices when it comes to having an eCommerce store. This article will acquaint you with some reasons that I believe make it one of the best eCommerce platforms available.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

571 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