Solved

Adding COM To  a Package

Posted on 2001-07-03
3
763 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
ID: 6248805
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
ID: 6265788
but how can I added it to component palette
0
 
LVL 2

Accepted Solution

by:
SChertkov earned 30 total points
ID: 6271953
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error E2158 compiling with Delphi XE10 Seattle 2 100
Create a path if not exists 7 77
Tembedded WB animatid gifs not animated on some pcs 2 80
Delphi...Split view - idea? 1 68
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

778 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