Using .NET dll in Delphi

T

Tim Bird

We are moving to .NET as a developent platform from Delphi. At the moment we
have a Dll in .NET and are trying to use it in Delphi 6. We have got as far
ac creating a type library for the dll. But as soon as we try to import this
into Delphi it tries to bring the type lib for the core of .NET in too. This
makes delphi run away and hide shaking in a corner. (basically loads of
types with names that clash with delphi). Has anybody done this or know a
link to any sites that may contain help. I have tried google for the obvious
and come up with nothing.

Thanks in advance.
 
T

Tim Bird

Thanks. But we have done that. It is when the type library that is created
is imported into delphi that we get the problem.
 
M

Marc Scheuner [MVP ADSI]

We are moving to .NET as a developent platform from Delphi. At the moment we
have a Dll in .NET and are trying to use it in Delphi 6.

You need to register your .NET assembly with the .NET tool RegAsm, and
then you should be able to import it into Delphi like any other COM
object, too - no need to fiddle with type libraries and stuff.....

Marc

================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top