Solved

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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