Solved

Delphi5 Name Collision in Libraries

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 209
problem when i try to pack my dll file with upx 9 71
Delphi selector screen 2 69
Controlled Assessment GCSE - desperate help needed 4 75
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…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

12 Experts available now in Live!

Get 1:1 Help Now