Odd Delphi 2007 Bug: COM APIs Locked to First Letter Lowercase in Type Library Editor


This has happened to me once before and I didn’t know what was the cause but had to change the name of the API to avoid such odd buggy situation in Delphi 2007.  The Delphi 2007 provides a convenient COM/OLE type library editor that you can easily add new properties/functions/methods to COM objects.  However, (maybe due to OS problems, I am currently using Win 8), very occasionally, a random API will be locked to its first letter lower-case no matter if I change it manually to uppercase, save it, compile it, it will be virtually a lower-case API.

vbscript-lowercase Odd Delphi 2007 Bug: COM APIs Locked to First Letter Lowercase in Type Library Editor delphi IDE Win32 API windows

It appears OK in the type library editor and sometimes when you reopen the project, it becomes lowercase again.

delphi2007-type-library Odd Delphi 2007 Bug: COM APIs Locked to First Letter Lowercase in Type Library Editor delphi IDE Win32 API windows

After endless hours of trying, searching and experimenting, I found out that it might be caused by the conflict of the parameters names in the same *.tlb file.

delphi2007-type-library-editor Odd Delphi 2007 Bug: COM APIs Locked to First Letter Lowercase in Type Library Editor delphi IDE Win32 API windows

The name of another API coincidentally has a lowercase parameter ‘scale’, which is the cause to force the name of the property ‘Scale’ to lowercase ‘scale’. How odd is this, it took me hours to correct this.

Another complain:  when you have approximately more than 1000 APIs in the type library editor. Adding/Removing/Modifying a API will freeze the Delphi IDE and it is very annoying! The Delphi Compiler is very excellent, but why the IDE sucks so much?

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
388 words
Last Post: Different Approaches to Reduce the CPU Temperature of Raspberry PI
Next Post: Simple Animation - Random Shapes - Learn Processing and ProcessingJS

The Permanent URL is: Odd Delphi 2007 Bug: COM APIs Locked to First Letter Lowercase in Type Library Editor

Leave a Reply