• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Delphi 8 - "Failed to add a reference to ActiveX library"

Hi,
I have my problem with Delphi 8 (Delphi for .NET):
I have an activeX control. I work well with VB6.
But when I used with Delphi 8 (I check the control in Installed Components list).
It always showed the message :
"Failed to add a reference to ActiveX library. Be sure it is properly registered".
And did not allow to use the control
Can you help me to solve the problem.
Thank in advance!

0
bufalobk
Asked:
bufalobk
1 Solution
 
Wim ten BrinkCommented:
regsvr32 <ActiveX control>

Where <ActiveX control> is the ActiveX control that you're trying to use. This is the first step you should take, although I expect it's already installed...

Another problem could be that the ActiveX control itself requires yet another ActiveX control and thus the other control cannot be found. Then again, if you use VB6 and Delphi 8 on the same machine and VB6 has no problems with it, then it must be something within .NET that is failing... Why, I don't know though. I do know that the use of ActiveX controls and other non-managed code is discouraged in .NET and not always correctly supported.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now