Solved

Delphi5 Name Collision in Libraries

Posted on 2002-07-23
2
192 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
[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 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 100 total points
ID: 7172224

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
ID: 7172504
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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