we are working with Hydra to use the C# components of GdPicture.
We made a working solution for using the Hydra-GdPicture-Classes directly in our Delphi applications.
Now we like to transfer the use of Hydra into a dll. For that we made some interfaces that we give back to the app as result of the creation in the dll.
This works fine too, until we try to use the Viewer of GdPicture. The Viewer is created and you can use every property and function of the Viewer-class. But it doesn´t become visible.
The ShowParented-Code of the Hydra-Plugin creates an THyPluginPanel which also stays invisible.
Is it possible to use Hydra that way, at all ?
Are there any Demos showing how to do it ?
Could you please elaborate? Did you already have a working Hydra plugin and host app and after some code reorganization in the host app it doesn’t work anymore?
Was the component in question (the Viewver) worked properly before that reorganization?
yes you are right.
We have a working plugin. But this is integrated directly in the application source.
We use the plugin in several applications.
So each time we change the plugin, we have to compile every application.
So we like to generate a dll that encapsulates all functions, and we only have to compile the dll and one application.
What we changed is to use interfaces to interop between app and dll.
if you get error like EConvertError with message 'Cannot assign a TFont to a TFont'. this means that runtime package that contain this class, should be used by host and plugin
Hydra can work w/o runtime packages , in COM-compatible mode, only if native delphi objects aren’t used.
in your case, they are used so it can work only with runtime packages when the same address space is used.
w/o using runtime packages, I have Exception class EConvertError with message 'Cannot assign a TFont to a TFont'. Process Project29.exe (8880)