Have Delphi Prism form into Delphi

Hello experts.

I have build a big program with delphi (Delphi 2009).

Now I have received few components that are .NET components for our video output.

Can I build a project with a single form in Delphi Prism (so I can make use of the .NET components), and then have delphi 2009 or delphi 2010 "see" this form and have it either as separate window or as a panel in an existing delphi window?
LVL 6
Ioannis AnifantakisSoftware EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

developmentguruPresidentCommented:
Conceptually you should be able to do this, but I am not sure of the specifics at the moment... I thought you might be able to start on it if I gave you some ideas though.  Within Delphi Prism you can feel free to create your form.  Once you have it you can wrapper it in an assembly (make any methods you would require to allow a user to create the form, display it, re-parent it (important).  Any .NET assembly can be imported into a Delphi application.  You would then use Delphi to call the appropriate methods to create the form and either display it (use it as-is), or re-parent it to one of your own Delphi forms or controls.

If you are able to make it work based on this, very nice.  If not, let me know and I will try to create an example.
0
Ioannis AnifantakisSoftware EngineerAuthor Commented:
My problem is that I don't know how to insert in delphi for win32 a managed dll written in .NET
0
developmentguruPresidentCommented:
If you make your code into an assembly then you can import it into Delphi.  To do this:

1) Component | Import Component
2) Choose Import .NET Assembly and hit NEXT
3) Choose your assembly from the list and continue to follow the import wizard.

This will create a Delphi unit that lets you use the assembly like it is part of the Delphi program.

As far as I know this is the easiest way to interface the two.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Ioannis AnifantakisSoftware EngineerAuthor Commented:
This way unfortunatelly doesn't import managed DLLs (.NET assemblies), but only the normal ActiveX dlls.
0
Ioannis AnifantakisSoftware EngineerAuthor Commented:
However I fell into this site, and from the first impression seems to work...

http://www.remobjects.com/hydra.aspx
0
Ioannis AnifantakisSoftware EngineerAuthor Commented:
Oh wait, I am on my Delphi7 PC at the moment,
I will check if your solution on the Delphi2009 PC and will let you know
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.