Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

688 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