DelphiFAQ Home Search:

Imported ActiveX control not appearing in the Component Palette

 

comments1 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

Question:
I'm trying to import an ActiveX component. To do this, I use Component|Import ActiveX
Control... select the control from the list (i've already installed and registered the component), compile and install the package.
The weird thing is that the XXX_TLB.as file doesn't have any class defining the component, just interfaces. When I install it, it doesn't add any item in the component palette. Is it possible for this ActiveX control to be runtime only and not for development or something like that?

Answer:
That can happen when the control is declared as non-creatable in the type library - VB does that.

In D6+:
Set the Tools | Environment Options | Type library | Ignore CanCreate flags when importing option to true before importing the control.

In previous Delphi versions:
Use File|Open, set the filter to Type Library files, open the OCX, and have a look at the CanCreate flag in the type library editor. Set it to true, save the type library as a tlb, and try importing that.

Comments:

2005-11-25, 10:32:26
Phil Alexander from United Kingdom  
rating
Ah... it all makes sense now :-)

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.