Solved

Adding COM To  a Package

Posted on 2001-07-03
3
767 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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