[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Delphi5 Name Collision in Libraries

Posted on 2002-07-23
2
Medium Priority
?
208 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month19 days, 23 hours left to enroll

873 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