Solved

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

Posted on 2008-10-16
3
378 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…

808 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