Solved

Delphi5 Name Collision in Libraries

Posted on 2002-07-23
2
180 Views
Last Modified: 2010-04-04
I wish to use a COM DLL created in Delphi
I do Project-> Import Type Library
I select the Library in the top ListBox
When I do so I see a list of Classes.
This list includes TDataBase

When I click 'Install' or 'Create Unit'
I receive the msg:
"The Class Name 'TDataBase' is already installed."

I can get around this problem by removing a package, but
I do not wish to . What is the work around for this
SomeHow I need to create a namespace or alias for one
of the TDataBase definitions?
Thanks
0
Comment
Question by:mebarron
2 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 100 total points
Comment Utility

The classes list is editable, so change the "TDataBase" to something that it won't conflict with,

example: TComDataBase

Russell

0
 

Author Comment

by:mebarron
Comment Utility
Great thanks , now I get an error in creating the
TLB file. The project compiles so I am going to
proceed assuming I can forget the error.

// Type Lib: C:\WINNT\system32\BlAPI4A.dll (1)
// IID\LCID: {5741CD0E-7A96-11D4-9349-00C04F053C92}\0
// Helpfile: J:\DATA1\DEVELOP\COM\BlaiseAPIProvider\BlAPI4A.hlp
// DepndLst:
//   (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
//   (2) v1.0 SiStrClA, (C:\WINNT\system32\SiStrClA.dll)
//   (3) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
// Errors:
//   Error creating palette bitmap of (TBLDatabase) : Invalid GUID format
// ************************************************************************ //
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

8 Experts available now in Live!

Get 1:1 Help Now