Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2022-06

Type Library Viewer, Importer, and Editor?

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Does Lazarus have a type library viewer for previewing all the type libraries on your computer in the form of converted pascal source code?

Does Lazarus have a type library editor allowing you to define plain COM and automation interfaces, enums, records, and such as IDL? If so does this tool generate and synchronize source code implementing those interfaces either TComObject as TAutoObject respectively?

I am asking because I have been going through an old external backup drive with some of the projects and tools I've written over the years. Simultaneously I am also working on an automation project for AutoCAD. This led me to review a type library viewer and importer utility I wrote some time ago and ...

IF the answer to my above questions is "NO" and ... IF there is moderate interest from the community

I might add some enhancements to the work I've already completed and create a Lazarus add-in to perform these tasks and abilities based on your feedback.

For reference here is a screen shot of my existing type library viewer and importer. It works by examining the registered COM objects on your computer with supporting type library information and shows your contents as Pascal source code. It has some searching, sorting, and filtering features. With your interest and feedback, I will consider making some modifications including a type library editor and implementing class generator.

https://cache.getlazarus.org/images/showcase/windows.type.libraries.jpg -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20220626/252cc01f/attachment.htm>

Reply by email

Marco van de Voort
to Anthony Walter
Anthony Walter wrote
Does Lazarus have a type library viewer for previewing all the type libraries on your computer in the form of converted pascal source code?

Afaik there is only a typelib importer (importtl) that generates pascal.

Reply by email

Sven Barth
to Marco van de Voort

Marco van de Voort via lazarus schrieb am
So., 26. Juni 2022, 15:06:

Show quoted text 8 lines
On 26-6-2022 14:37, Anthony Walter via lazarus wrote: > Does Lazarus have a type library viewer for previewing all the type > libraries on your computer in the form of converted pascal source code? Afaik there is only a typelib importer (importtl) that generates pascal.

And it allows listing of all installed type libraries. You can check it out in the IDE by installing the LazActiveX package.

Regards,
Sven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20220626/ed2a90f1/attachment.htm>

Reply by email

Anthony Walter
to Sven Barth

Thank you for the information. I'll take a look ay and see if it can be improved.

I normally use Linux these days, which obliviates all use or reference to type libraries, but I have a need to write a program to automate AutoCAD with some specific hardware I recently acquired. While working with COM, type libraries, and automation again I started remembering how useful, easy, and productive these technologies are. I get that they were / are a huge security nightmare, but that's what comes with ease of use and the power of getting components of your operating system and applications to share methods, data, and resources in a programming language agnostic way.

I think it's too bad Microsoft has decided to shelf it all. They could have fixed the security issues with it rather than dropping it altogether. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20220626/214c6039/attachment-0001.htm>

Reply by email