?
Solved

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

Posted on 2008-10-16
3
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

764 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