Solved

Adding COM To  a Package

Posted on 2001-07-03
3
758 Views
Last Modified: 2008-03-17
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."
0
Comment
Question by:aminmohsalih
  • 2
3 Comments
 
LVL 2

Expert Comment

by:SChertkov
Comment Utility
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
 

Author Comment

by:aminmohsalih
Comment Utility
but how can I added it to component palette
0
 
LVL 2

Accepted Solution

by:
SChertkov earned 30 total points
Comment Utility
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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now