Your project does not have a type library...#

I've used the christmas-new-year-time to reinstall my work station. One year of abuse, no images, etc. has taken its toll and it was time to do something about just that. After I had reinstalled my most needed applications on-top of Windows Vista Ultimate (Visual Studio 2008, RAD Studio 2007, InterBase 2007, 2007 Office System, Acrobat Reader and 7-zip) I pulled my source codes of our largest project. We needed an addition to one of the libraries, so I loaded it into the Delphi IDE and wanted to go to the type library editor (it is a ActiveX/COM server library).

Well, the menu point was grayed out. Delphi did not let me know why it did not want to load the type library, nor did it show any error message. After experimenting a little, I found out, that I could load about half the COM server projects just fine, while others did not let me load the type library editor either. No error messages, no warnings, and all would compile just fine.

Later I tried to load the TLB file directly into Delphi and I got the message, that it cannot be loaded, because a dependent ActiveX library is not installed. So I started registering the other type libraries of the project, one by one, wondering why - I never had to do that before - and it did not help in any way. Later I had an idea and checked upon my MS XML installations and found the MS XML 3, MS XML 5, and MS XML 6 were installed, MS XML 4 was missing, however. After installing MS XML 4 I could load all projects again and edit the type libraries as well.

So please, CodeGear, start giving us meaningful error messages in this case too. I will have to come up with a example showing the problem, but how can I let them know how really important such issues can be...?

Anyway, happy new year to all of you out there!

Friday, January 04, 2008 3:11:32 PM (W. Europe Standard Time, UTC+01:00) #    Comments [4]  | 

 

Google AdSense


Friday, January 04, 2008 8:02:49 PM (W. Europe Standard Time, UTC+01:00)
I think you'll find the lack of detail comes from the OS itself here.
Xepol
Saturday, January 05, 2008 4:00:24 AM (W. Europe Standard Time, UTC+01:00)
If my understanding is correct, Delphi 2006 installer should have checked if MS XML 4 is installed and installed it if necessary. So I cannot understand why Delphi 2007 installer fails to do the same.

Also MS XML 4 is a critical update for Windows XP, I wonder why it is not pre-installed on Windows Vista by Microsoft, its original vendor.
Monday, January 07, 2008 2:22:15 AM (W. Europe Standard Time, UTC+01:00)
Type library... seldom need to code it now but I remembered how buggy was the type library editor in Delphi 7 to corrupt several TLB files for me in the old days... Just wonder how is the status of the current type library editor? It is stable?
william
Monday, January 07, 2008 9:30:22 AM (W. Europe Standard Time, UTC+01:00)
Hi Lex,

Windows Vista comes with MS XML 6, which usually satisfies the need for MS XML 4. However, my type library was looking for exactly MS XML 4, that's why it failed. Same goes for Delphi 2007, which is just as happy to have MS XML 6 installed, instead of MS XML 4. Usually there is no need for a specific version.
Comments are closed.
All content © 2008, Daniel Wischnewski
On this page
Archives
Promoted Links
Blogroll OPML
My current Flickr Images
www.flickr.com
Dies ist ein Flickr Modul mit �ffentlichen Fotos und Videos von dwischnewski. Ihr eigenes Modul k�nnen Sie hier erstellen.
Recommendations
Sitemap
Special Pages
Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design by Jelle Druyts