Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hi,

I have a project in VB6, which has a component (abc.ocx). I've registed this ocx and then use it in my project. I compiled the project, it's exe runs very well in my machine; but it does not execute in other machine. It reports error that "Could not load ocx"; although I've registed this ocx into that mechanic. So how to solve this problem? I want my exe to execute on other machine.

Thanks.
Posted
Updated 26-Feb-11 15:07pm
v2
Comments
Abhinav S 25-Feb-11 22:42pm    
Too difficult to tell just like this. Are there any differences between the two machines in terms of OS etc?
Rod Kemp 26-Feb-11 7:30am    
What is the EXACT error message you are getting?
HimanshuJoshi 26-Feb-11 21:08pm    
Edited to improve readability and correct grammar. It would be better to add exact error message and machine details.

1 solution

Your OCX file probably requires some other .DLLs in order to work. Those .DLLs don't exist on the other machine, so the OCX won't work. Use Dependancy Walker[^] to find out what .DLLs your OCX is using, but cannot find on the target machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900