Solved

ocx or one of its dependencies not correctly registered, but it is registered

Posted on 2008-10-16
3
368 Views
Last Modified: 2013-11-25
I have developed a program, both in Visual Basic 2005 .NET and in VB6 SP6 to communicate with a smal controller board.  The communication is by a small .OCX control provided by the mfr of the controller.  This all works on the development computer, but when I try to launch it on another machine I get the message: Component SLCom.ocx or one of its dependencies not correctly registered: a file is missing or invalid.  

I used regsvr32 to confirm that it is registered.  No change.  
regsvr32 \windows\system32\SLCom.ocx

How can I troubleshoot this?  Searching through the registry manually?  If I knew the problem, I could probably tweak a setup program or script to fix it.

Ken
0
Comment
Question by:khirst
  • 2
3 Comments
 
LVL 13

Expert Comment

by:crazyman
ID: 22734159
I would guess it has a dependency that youve missed.

http://www.dependencywalker.com/
0
 

Author Comment

by:khirst
ID: 22736492
actually, dependencywalker looks like a great tool, thank you for bringing it to my attention.   There was a .DLL missing, DWMAPI.DLL, but downloading that did not help.  Also, the same dll was missing on the development computer, where this all works fine.
It seems to point to the application not being able to find the .OCX itself, even though it IS there, and is registered.
Any more ideas?
I will be off of this until Monday, so please don't think I have abandond the thread.
 
Ken
0
 

Accepted Solution

by:
khirst earned 0 total points
ID: 22795128
I never did find a solution to this, but fortunately I was able to get the source code for the .OCX from the equipment supplier.  By compiling the control right into the .EXE, I do not have to worry about registration issues and not being able to find the >ocx.

So it is somewhat resolved but not by info from E-E.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 121
How do I get the id from URL? 19 48
Get String split 5 33
Open a word document 23 18
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now