Re: [Lazarus] Type Library Viewer, Importer, and Editor?

2022-06-26 Thread Anthony Walter via lazarus
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.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Type Library Viewer, Importer, and Editor?

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

>
> 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

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-26 Thread Luca Olivetti via lazarus

El 26/6/22 a les 13:44, Werner Pamler via lazarus ha escrit:

Am 26.06.2022 um 13:20 schrieb Luca Olivetti via lazarus:

El 26/6/22 a les 11:36, Werner Pamler via lazarus ha escrit:

Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:

VampyreImaginPackage 0.80


Mine is v0.82 which is the current version in OPM. According to their 
release notes there are changes related to PNG saving.


My online package manager only has 0.80, the repository is 
http://packages.lazarus-ide.org


Ah, I had installed the git version, and then OPM displays the installed 
version number...


You can find the author's github version (v0.82) at 
https://github.com/galfar/imaginglib (if you don't use git, you can 
download also a zip from there).





Even if version 0.82 solves the stream read error, the underlying 
problem is still there: it hijacks the format used for streaming 
TPicture but there is no dependency added to the projects when you add a 
TPicture.

I don't know if that's even possible, but it is a problem nevertheless.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Type Library Viewer, Importer, and Editor?

2022-06-26 Thread Marco van de Voort via lazarus



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.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Type Library Viewer, Importer, and Editor?

2022-06-26 Thread Anthony Walter via lazarus
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
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-26 Thread Werner Pamler via lazarus

Am 26.06.2022 um 13:20 schrieb Luca Olivetti via lazarus:

El 26/6/22 a les 11:36, Werner Pamler via lazarus ha escrit:

Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:

VampyreImaginPackage 0.80


Mine is v0.82 which is the current version in OPM. According to their 
release notes there are changes related to PNG saving.


My online package manager only has 0.80, the repository is 
http://packages.lazarus-ide.org


Ah, I had installed the git version, and then OPM displays the installed 
version number...


You can find the author's github version (v0.82) at 
https://github.com/galfar/imaginglib (if you don't use git, you can 
download also a zip from there).


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-26 Thread Luca Olivetti via lazarus

El 26/6/22 a les 11:36, Werner Pamler via lazarus ha escrit:

Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:

VampyreImaginPackage 0.80


Mine is v0.82 which is the current version in OPM. According to their 
release notes there are changes related to PNG saving.


My online package manager only has 0.80, the repository is 
http://packages.lazarus-ide.org


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-26 Thread Werner Pamler via lazarus

Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:

VampyreImaginPackage 0.80


Mine is v0.82 which is the current version in OPM. According to their 
release notes there are changes related to PNG saving.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-26 Thread Luca Olivetti via lazarus

El 26/6/22 a les 1:08, Werner Pamler via lazarus ha escrit:


It doesn't even work at designtime (see above).


Try attached demo project. The "paw" image was inserted into a TImage 
after installation of Vampyre. All I had to do to get it working is to 
add Vampyre to the project requirements and to add ImagingComponents to 
the uses clause (or check theĀ  box "Add package unit to uses section" in 
the package options, then the formats will be registered for runtime 
automatically).



With the VampyreImaginPackage 0.80 not installed in the ide, I can open 
the project, see a blank image and when I try to run it:


"Project project1 raised exception class 'EReadError' with message: 
Stream read error"


With the package installed I get the error as soon as I try to open the 
project (as well as when I try to run it).


I cannot install the VampyreImagingPackageExt


Warning: linker: /usr/bin/ld: 
/home/luca/Datos/laz_2_2/onlinepackagemanager/packages/VampyreImaging/Packages/lib/VampyreImagingPackageExt/3.2.2/x86_64-linux/default/ZLibDelphi.o: 
undefined reference to symbol 'deflateInit_'


(in fact, I never installed it, yet it streamed the pictures as TImagingPMG)

Bye

--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus