Solved

Delphi5 Name Collision in Libraries

Posted on 2002-07-23
2
188 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 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