Adding COM To a Package

Hi, I am trying to collect all components I built in one package but I have  trouble adding a COM component to this package. The COM object uses a ComServ  Unit and when I try to add the Com to the package I get an error saying "cannot add unit ComServ to package."
aminmohsalihAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SChertkovConnect With a Mentor Commented:
You have some choices.
1. Create ActiveX and import it to Delphi IDE
( Delphi will generate wrapper unit and register it
as component in palette ).
2. If you COM object is Automation Server only you can
import typelib in Delphi IDE ( check generate componet wrapper ) and register it in component palette.
3. If you have very special COM object you can
write component wrapper manually.
0
 
SChertkovCommented:
This error raised {$DENYPACKAGEUNIT} in ComServ unit.
In any case you can not collect COM objects in package,
is concerned with COM object activation nature.
You must use activeX libraries.
If you want create COM object that possible add
to component palette, create ActiveX and import
it to Delphi IDE.
0
 
aminmohsalihAuthor Commented:
but how can I added it to component palette
0
All Courses

From novice to tech pro — start learning today.