Hydra_Core_D7 missing

Hi there!

I’m sorry, but i’m c# programmer and don’t know delphi. Here is my issue:
I develop a Winforms Container, which will store out old delphi visual components. Guys from my department made a delphi plugin as in your guide and gave me compiled dll. They have configured their build to include rtl,vcl and hydra core (we are trying trial till we’ll be sure it works as we want), but when i try to load this plugin into sample winforms host, it says that is cannot find nor rtl70, nor vcl70, nor hydra core clases. As you can undrstand, i copied rtl and vcl dlls to app root, but where can i now get hydra core classes?

I’ll be gratefull for any help and hope you’ll help me soon, because we need to undestand if we can use your product

Hi. Hydra bpl’s can be found in the InstallFolder\Hydra for Delphi\Dcu\D7

Sorry, but i don’t have this folder. Maybe it’s because i don’t have any Delphi IDE. I have only Everwood, Hydra (Common) and Hydra for .Net folders. I tried to reinstall trial and even downloaded spring release (28 march), but the folder haven’t created and there are no extra options in installer. I can’t even choose installation folder.

Ah, yes, if Delphi is not present then installer doesn’t deploy binaries. You can workaround this by changing registry:

  1. Go to - HKEY_CURRENT_USER\Software\Borland\Delphi\7.0 (or create if it doesn’t exists)
  2. Create a string parameter named “App” with non empty content (you can put anything there, just so it not an empty string).
  3. Reinstall Hydra with selecting “Integrate into Delphi” -> “Delphi 7” option inside installer

Now, it should install binaries for Delphi 7 into the InstallFolder\Hydra for Delphi\Dcu\D7

Thanks, that worked. The only question is - when i’ll buy full license and build delphi component with it (and host too, ofc), will the bpl files be included in dll or we’ll have to fix this error by providing them to client?

And, as your help is very usefull, i have another one problem: In my WinForms app (made with your template in VS) delphi dll works great, but when i wrap winForms control into WPF WindowsFormsHost delphi dll doesn’t work (throws error 216). At the same time, silverlight plugin (which is provided in sample) works in winformshost great. Am i doing anything wrong again or it is licence trouble?

And also - where, by default, hydra-based app will search for .bpl files to resolve dependecies?

Thank you much for help

With full version you can build plugin module without runtime packages at all. Runtime packages required only when you have host and plugin both in Delphi. So, if you are using .NET host and Delphi plugin, you can avoid using them at all.

Bpl is a regular dll’s, so i believe it uses standard mechanism, Hydra itself doesn’t directly load bpl’s, Delphi doing this automatically.

No, unfortunatelly it is not a known problem. But this may be related to how you host a plugin, we don’t really support hosting Delphi plugins in the WPF. Our existing WinForms host panel requires a Form as a parent, so this may be the cause.

I’ve attached a sample that shows how to host Delphi plugin in WPF, but since this way of hosting is not really supported we’ve never tested it, so there can be problems especially with keyboard/focus events.

WpfHost.zip (23.4 KB)