Use .NET DLL in Delphi 5 Professional

How can I use a .NET DLL I wrote in Delphi 5 Professional?  I tried importing it using the Import Type Library but it said "Error loading type library/DLL.".
dokkenAsked:
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.

PalamedesCommented:
I think that is something they have addressed / are addressing in version 7 of Delphi.. but I dunno about using it in 5.. =(

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
Mohammed NasmanSoftware DeveloperCommented:
Hello

  the .Net DLL isn't com libarary, so you can't import them using import type Library, to be able to use the .Net technology, you need Delphi.Net preview Compiler that bundled with Delphi 7 package.

There's open source project to enable Delphi 5 and above to communicate with the Microsoft .NET-Framework.

http://sourceforge.net/projects/delphinet/


Best regards
Mohammed Nasman
0
PatrickMMartinCommented:
It is possible to create COM registered assemblies, though you do have to make a signed assembly to COM to use it, and this means there can only be one instance of the assembly can be available on the machine.

Have a look on MSDN for instructions on creating a COM compatible .NET assembly.

Hope this helps.
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.