howto find a missing activex object
I often run into this problem creating installations for software, I try to add all depenancies but is there a way to tell what object is missing during run? "ActiveX cannot create object" Is there way to know what the app is looking for on the customers machine?
# 1 Re: howto find a missing activex object
Its a difficult question to answer.
But then try using the "Dependency Viewer" that comes with the Visual Studio.
Biplab
# 2 Re: howto find a missing activex object
A common scenario would be that the version of ADO on the development machine differs from that on the client machine. This may not be the case here but it is often one of the first things that I check for when this problem occurs.
-K
Kdev at 2007-11-10 0:45:01 >

# 3 Re: howto find a missing activex object
I figured out how to do this. The most common (and annoying) problem with distributing applications for me is forgetting a DLL or OCX file. I package the installation up then install it on a customers machine and find a Active X cannot create object error. I figured out how to track this. I went to sysinternals.com and downloaded regmon a tool that can run from a floppy and allow you to view the class ID's getting loaded as the application starts. I looked for a Not Found error when loading a "2452D55D-195E-11D...." type key. Then I copy this class-id down and search for it on the build machine's registry to discover the missing ActiveX componant!
# 4 Re: howto find a missing activex object
If you are creating your objects late bound (ie with createobject or getobject) then you should be able to write an errorHandling routine in your app where you create them, and make it tell you wich is the component it is not able to create.
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make dev-archive a great place.
Come back soon, you Gurus.
The Rater
# 5 Re: howto find a missing activex object
I work on making Installations.
The shortest and easiest way is to run some testing s/w like Rational Pure Coverage.
This will give you all the run time dependencies.
You can download trial version.
Run it on the developers machine.
Then note down all dependencies.
And add all dependencies to your Installer.
Please rate the article if it is of any use to you. This encourages me to reply more and more and more.
# 6 Re: howto find a missing activex object
There is a much better version of the Dependency Viewer on Microsoft's site (better than the one that shipped with Visual Studio 6, I mean).