Solved

Adding COM To  a Package

Posted on 2001-07-03
3
769 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month6 days, 21 hours left to enroll

622 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